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 24 matching lines...) Expand all Loading... |
35 int32_t RegisterObserver(MonitorObserver& observer); | 35 int32_t RegisterObserver(MonitorObserver& observer); |
36 | 36 |
37 int32_t DeRegisterObserver(); | 37 int32_t DeRegisterObserver(); |
38 | 38 |
39 MonitorModule(); | 39 MonitorModule(); |
40 | 40 |
41 virtual ~MonitorModule(); | 41 virtual ~MonitorModule(); |
42 public: // module | 42 public: // module |
43 int64_t TimeUntilNextProcess() override; | 43 int64_t TimeUntilNextProcess() override; |
44 | 44 |
45 int32_t Process() override; | 45 void Process() override; |
46 | 46 |
47 private: | 47 private: |
48 rtc::CriticalSection _callbackCritSect; | 48 rtc::CriticalSection _callbackCritSect; |
49 MonitorObserver* _observerPtr GUARDED_BY(_callbackCritSect); | 49 MonitorObserver* _observerPtr GUARDED_BY(_callbackCritSect); |
50 int64_t _lastProcessTime; | 50 int64_t _lastProcessTime; |
51 }; | 51 }; |
52 | 52 |
53 } // namespace voe | 53 } // namespace voe |
54 | 54 |
55 } // namespace webrtc | 55 } // namespace webrtc |
56 | 56 |
57 #endif // VOICE_ENGINE_MONITOR_MODULE | 57 #endif // VOICE_ENGINE_MONITOR_MODULE |
OLD | NEW |