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

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

Issue 7272036: Make MediaInternalsUI talk to MediaInternals. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Splitting it all up. Created 9 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_INTERNALS_MEDIA_INTERNALS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_INTERNALS_MEDIA_INTERNALS_HANDLER_H_
7 #pragma once
8
9 #include "chrome/browser/ui/webui/chrome_web_ui.h"
10
11 class MediaInternalsProxy;
12
13 // This class handles messages to and from MediaInternalsUI.
14 // It does all its work on the IO thread through the proxy below.
15 class MediaInternalsMessageHandler : public WebUIMessageHandler {
16 public:
17 MediaInternalsMessageHandler();
18 virtual ~MediaInternalsMessageHandler();
19
20 // WebUIMessageHandler implementation.
21 virtual WebUIMessageHandler* Attach(WebUI* web_ui);
22 virtual void RegisterMessages();
23
24 // Javascript message handlers.
25 void OnGetEverything(const ListValue* list);
26
27 // MediaInternals message handlers.
28 void OnUpdate(const string16& update);
29
30 private:
31 scoped_refptr<MediaInternalsProxy> proxy_;
32
33 DISALLOW_COPY_AND_ASSIGN(MediaInternalsMessageHandler);
34 };
35
36 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_INTERNALS_MEDIA_INTERNALS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698