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 "content/public/browser/web_ui_message_handler.h" |
| 10 |
| 11 class WebRTCInternalsProxy; |
| 12 |
| 13 // This class handles messages to and from WebRTCInternalsUI. |
| 14 // It delegates all its work to WebRTCInternalsProxy on the IO thread. |
| 15 class WebRTCInternalsMessageHandler : public content::WebUIMessageHandler { |
| 16 public: |
| 17 WebRTCInternalsMessageHandler(); |
| 18 virtual ~WebRTCInternalsMessageHandler(); |
| 19 |
| 20 // WebUIMessageHandler implementation. |
| 21 virtual void RegisterMessages() OVERRIDE; |
| 22 |
| 23 // WebRTCInternals message handler. |
| 24 void OnUpdate(const string16& update); |
| 25 |
| 26 private: |
| 27 scoped_refptr<WebRTCInternalsProxy> proxy_; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(WebRTCInternalsMessageHandler); |
| 30 }; |
| 31 |
| 32 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_WEBRTC_INTERNALS_MESSAGE_HANDLER_H_ |
OLD | NEW |