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