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

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: 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 "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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698