| 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_INTERNALS_UI_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_INTERNALS_UI_OBSERVER_H_ |
| 6 #define CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_UI_OBSERVER_H_ | 6 #define CHROME_BROWSER_MEDIA_WEBRTC_INTERNALS_UI_OBSERVER_H_ |
| 7 | 7 |
| 8 namespace base { | 8 namespace base { |
| 9 class Value; | 9 class Value; |
| 10 } // namespace base | 10 } // namespace base |
| 11 | 11 |
| 12 namespace content { | 12 namespace media { |
| 13 | |
| 14 // Implement this interface to receive WebRTCInternals updates. | 13 // Implement this interface to receive WebRTCInternals updates. |
| 15 class WebRTCInternalsUIObserver { | 14 class WebRTCInternalsUIObserver { |
| 16 public: | 15 public: |
| 17 virtual ~WebRTCInternalsUIObserver() {} | 16 virtual ~WebRTCInternalsUIObserver() {} |
| 18 | 17 |
| 19 // This is called on the browser IO thread. | 18 // This is called on the browser IO thread. |
| 20 virtual void OnUpdate(const std::string& command, | 19 virtual void OnUpdate(const std::string& command, |
| 21 const base::Value* args) = 0; | 20 const base::Value* args) = 0; |
| 22 }; | 21 }; |
| 23 | 22 |
| 24 } // namespace content | 23 } // namespace media |
| 25 | 24 #endif // CHROME_BROWSER_MEDIA_WEBRTC_INTERNALS_UI_OBSERVER_H_ |
| 26 #endif // CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_UI_OBSERVER_H_ | |
| OLD | NEW |