OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_WEBRTC_INTERNALS_MESSAGE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_WEBRTC_INTERNALS_MESSAGE_HANDLER_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "chrome/browser/media/webrtc_internals_ui_observer.h" |
| 10 #include "content/public/browser/web_ui_message_handler.h" |
| 11 |
| 12 // This class handles messages to and from WebRTCInternalsUI. |
| 13 // It delegates all its work to WebRTCInternalsProxy on the IO thread. |
| 14 class WebRTCInternalsMessageHandler : public content::WebUIMessageHandler, |
| 15 public WebRTCInternalsUIObserver{ |
| 16 public: |
| 17 WebRTCInternalsMessageHandler(); |
| 18 virtual ~WebRTCInternalsMessageHandler(); |
| 19 |
| 20 // WebUIMessageHandler implementation. |
| 21 virtual void RegisterMessages() OVERRIDE; |
| 22 |
| 23 // WebRTCInternalsUIObserver override. |
| 24 virtual void OnUpdate(const std::string& command, |
| 25 const base::Value* args) OVERRIDE; |
| 26 |
| 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(WebRTCInternalsMessageHandler); |
| 29 }; |
| 30 |
| 31 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_WEBRTC_INTERNALS_MESSAGE_HANDLER_H_ |
OLD | NEW |