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

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

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_MEDIA_INTERNALS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_MEDIA_INTERNALS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_MEDIA_INTERNALS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_MEDIA_INTERNALS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/webui/chrome_web_ui.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h"
11 #include "content/public/browser/web_ui_message_handler.h"
10 12
11 class MediaInternalsProxy; 13 class MediaInternalsProxy;
12 14
13 namespace base { 15 namespace base {
14 class ListValue; 16 class ListValue;
15 } 17 }
16 18
17 // This class handles messages to and from MediaInternalsUI. 19 // This class handles messages to and from MediaInternalsUI.
18 // It does all its work on the IO thread through the proxy below. 20 // It does all its work on the IO thread through the proxy below.
19 class MediaInternalsMessageHandler : public WebUIMessageHandler { 21 class MediaInternalsMessageHandler : public content::WebUIMessageHandler {
20 public: 22 public:
21 MediaInternalsMessageHandler(); 23 MediaInternalsMessageHandler();
22 virtual ~MediaInternalsMessageHandler(); 24 virtual ~MediaInternalsMessageHandler();
23 25
24 // WebUIMessageHandler implementation. 26 // WebUIMessageHandler implementation.
25 virtual void RegisterMessages() OVERRIDE; 27 virtual void RegisterMessages() OVERRIDE;
26 28
27 // Javascript message handlers. 29 // Javascript message handlers.
28 void OnGetEverything(const base::ListValue* list); 30 void OnGetEverything(const base::ListValue* list);
29 31
30 // MediaInternals message handlers. 32 // MediaInternals message handlers.
31 void OnUpdate(const string16& update); 33 void OnUpdate(const string16& update);
32 34
33 private: 35 private:
34 scoped_refptr<MediaInternalsProxy> proxy_; 36 scoped_refptr<MediaInternalsProxy> proxy_;
35 37
36 DISALLOW_COPY_AND_ASSIGN(MediaInternalsMessageHandler); 38 DISALLOW_COPY_AND_ASSIGN(MediaInternalsMessageHandler);
37 }; 39 };
38 40
39 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_MEDIA_INTERNALS_HANDLER_H_ 41 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_MEDIA_INTERNALS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/input_window_dialog_webui.cc ('k') | chrome/browser/ui/webui/media/media_internals_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698