Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: chrome/browser/ui/webui/media/webrtc_internals_message_handler.h

Issue 11876007: Connecting webrtc-internals WebUI frontend with the backend (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@main
Patch Set: fix vrk's comment Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698