| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_MEDIA_WEBRTC_WEBRTC_INTERNALS_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_WEBRTC_WEBRTC_INTERNALS_H_ |
| 6 #define CONTENT_BROWSER_MEDIA_WEBRTC_WEBRTC_INTERNALS_H_ | 6 #define CONTENT_BROWSER_MEDIA_WEBRTC_WEBRTC_INTERNALS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 void UpdateObserver(WebRTCInternalsUIObserver* observer); | 95 void UpdateObserver(WebRTCInternalsUIObserver* observer); |
| 96 | 96 |
| 97 // Enables or disables diagnostic audio recordings for debugging purposes. | 97 // Enables or disables diagnostic audio recordings for debugging purposes. |
| 98 void EnableAudioDebugRecordings(content::WebContents* web_contents); | 98 void EnableAudioDebugRecordings(content::WebContents* web_contents); |
| 99 void DisableAudioDebugRecordings(); | 99 void DisableAudioDebugRecordings(); |
| 100 | 100 |
| 101 bool IsAudioDebugRecordingsEnabled() const; | 101 bool IsAudioDebugRecordingsEnabled() const; |
| 102 const base::FilePath& GetAudioDebugRecordingsFilePath() const; | 102 const base::FilePath& GetAudioDebugRecordingsFilePath() const; |
| 103 | 103 |
| 104 // Enables or disables diagnostic event log. | 104 // Enables or disables diagnostic event log. |
| 105 void SetEventLogRecordings(bool enable, content::WebContents* web_contents); | 105 void EnableEventLogRecordings(content::WebContents* web_contents); |
| 106 void DisableEventLogRecordings(); |
| 106 | 107 |
| 107 bool IsEventLogRecordingsEnabled() const; | 108 bool IsEventLogRecordingsEnabled() const; |
| 108 const base::FilePath& GetEventLogRecordingsFilePath() const; | 109 const base::FilePath& GetEventLogFilePath() const; |
| 109 | 110 |
| 110 protected: | 111 protected: |
| 111 // Constructor/Destructor are protected to allow tests to derive from the | 112 // Constructor/Destructor are protected to allow tests to derive from the |
| 112 // class and do per-instance testing without having to use the global | 113 // class and do per-instance testing without having to use the global |
| 113 // instance. | 114 // instance. |
| 114 // The default ctor sets |aggregate_updates_ms| to 500ms. | 115 // The default ctor sets |aggregate_updates_ms| to 500ms. |
| 115 WebRTCInternals(); | 116 WebRTCInternals(); |
| 116 explicit WebRTCInternals(int aggregate_updates_ms); | 117 explicit WebRTCInternals(int aggregate_updates_ms); |
| 117 ~WebRTCInternals() override; | 118 ~WebRTCInternals() override; |
| 118 | 119 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 std::queue<PendingUpdate> pending_updates_; | 239 std::queue<PendingUpdate> pending_updates_; |
| 239 const int aggregate_updates_ms_; | 240 const int aggregate_updates_ms_; |
| 240 | 241 |
| 241 // Weak factory for this object that we use for bulking up updates. | 242 // Weak factory for this object that we use for bulking up updates. |
| 242 base::WeakPtrFactory<WebRTCInternals> weak_factory_; | 243 base::WeakPtrFactory<WebRTCInternals> weak_factory_; |
| 243 }; | 244 }; |
| 244 | 245 |
| 245 } // namespace content | 246 } // namespace content |
| 246 | 247 |
| 247 #endif // CONTENT_BROWSER_MEDIA_WEBRTC_WEBRTC_INTERNALS_H_ | 248 #endif // CONTENT_BROWSER_MEDIA_WEBRTC_WEBRTC_INTERNALS_H_ |
| OLD | NEW |