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

Unified Diff: chrome/browser/ui/webui/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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/webrtc_internals_message_handler.h
diff --git a/chrome/browser/ui/webui/webrtc_internals_message_handler.h b/chrome/browser/ui/webui/webrtc_internals_message_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..aa8db4a259da3e203af10226ec29b9d564f154a4
--- /dev/null
+++ b/chrome/browser/ui/webui/webrtc_internals_message_handler.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_WEBRTC_INTERNALS_MESSAGE_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_WEBRTC_INTERNALS_MESSAGE_HANDLER_H_
+
+#include "base/memory/ref_counted.h"
+#include "content/public/browser/web_ui_message_handler.h"
+
+class WebRTCInternalsProxy;
+
+// This class handles messages to and from WebRTCInternalsUI.
+// It delegates all its work to WebRTCInternalsProxy on the IO thread.
+class WebRTCInternalsMessageHandler : public content::WebUIMessageHandler {
+ public:
+ WebRTCInternalsMessageHandler();
+ virtual ~WebRTCInternalsMessageHandler();
+
+ // WebUIMessageHandler implementation.
+ virtual void RegisterMessages() OVERRIDE;
+
+ // WebRTCInternals message handler.
+ void OnUpdate(const string16& update);
+
+ private:
+ scoped_refptr<WebRTCInternalsProxy> proxy_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebRTCInternalsMessageHandler);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_WEBRTC_INTERNALS_MESSAGE_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698