OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 const char msg[WEBRTC_TRACE_MAX_MESSAGE_SIZE], | 74 const char msg[WEBRTC_TRACE_MAX_MESSAGE_SIZE], |
75 const uint16_t written_so_far) const; | 75 const uint16_t written_so_far) const; |
76 | 76 |
77 void AddMessageToList( | 77 void AddMessageToList( |
78 const char trace_message[WEBRTC_TRACE_MAX_MESSAGE_SIZE], | 78 const char trace_message[WEBRTC_TRACE_MAX_MESSAGE_SIZE], |
79 const uint16_t length, | 79 const uint16_t length, |
80 const TraceLevel level); | 80 const TraceLevel level); |
81 | 81 |
82 bool UpdateFileName( | 82 bool UpdateFileName( |
83 char file_name_with_counter_utf8[FileWrapper::kMaxFileNameSize], | 83 char file_name_with_counter_utf8[FileWrapper::kMaxFileNameSize], |
84 const uint32_t new_count) const EXCLUSIVE_LOCKS_REQUIRED(crit_); | 84 const uint32_t new_count) const RTC_EXCLUSIVE_LOCKS_REQUIRED(crit_); |
85 | 85 |
86 bool CreateFileName( | 86 bool CreateFileName( |
87 const char file_name_utf8[FileWrapper::kMaxFileNameSize], | 87 const char file_name_utf8[FileWrapper::kMaxFileNameSize], |
88 char file_name_with_counter_utf8[FileWrapper::kMaxFileNameSize], | 88 char file_name_with_counter_utf8[FileWrapper::kMaxFileNameSize], |
89 const uint32_t new_count) const; | 89 const uint32_t new_count) const; |
90 | 90 |
91 void WriteToFile(const char* msg, uint16_t length) | 91 void WriteToFile(const char* msg, uint16_t length) |
92 EXCLUSIVE_LOCKS_REQUIRED(crit_); | 92 RTC_EXCLUSIVE_LOCKS_REQUIRED(crit_); |
93 | 93 |
94 TraceCallback* callback_ GUARDED_BY(crit_); | 94 TraceCallback* callback_ RTC_GUARDED_BY(crit_); |
95 uint32_t row_count_text_ GUARDED_BY(crit_); | 95 uint32_t row_count_text_ RTC_GUARDED_BY(crit_); |
96 uint32_t file_count_text_ GUARDED_BY(crit_); | 96 uint32_t file_count_text_ RTC_GUARDED_BY(crit_); |
97 | 97 |
98 const std::unique_ptr<FileWrapper> trace_file_ GUARDED_BY(crit_); | 98 const std::unique_ptr<FileWrapper> trace_file_ RTC_GUARDED_BY(crit_); |
99 std::string trace_file_path_ GUARDED_BY(crit_); | 99 std::string trace_file_path_ RTC_GUARDED_BY(crit_); |
100 rtc::CriticalSection crit_; | 100 rtc::CriticalSection crit_; |
101 }; | 101 }; |
102 | 102 |
103 } // namespace webrtc | 103 } // namespace webrtc |
104 | 104 |
105 #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_TRACE_IMPL_H_ | 105 #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_TRACE_IMPL_H_ |
OLD | NEW |