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

Side by Side Diff: chrome/browser/extensions/extension_dom_ui.h

Issue 126137: Part 1 of merging Extensions and DOMUI (Closed)
Patch Set: add test and rebase Created 11 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
« no previous file with comments | « chrome/browser/dom_ui/dom_ui_factory.cc ('k') | chrome/browser/extensions/extension_dom_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DOM_UI_H_
2 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DOM_UI_H_
3
4 #include "base/scoped_ptr.h"
5 #include "chrome/browser/dom_ui/dom_ui.h"
6 #include "chrome/browser/extensions/extension_function_dispatcher.h"
7
8 // This class implements DOMUI for extensions and allows extensions to put UI in
9 // the main tab contents area.
10 class ExtensionDOMUI
11 : public DOMUI,
12 public ExtensionFunctionDispatcher::Delegate {
13 public:
14 explicit ExtensionDOMUI(TabContents* tab_contents);
15 ExtensionFunctionDispatcher* extension_function_dispatcher() const {
16 return extension_function_dispatcher_.get();
17 }
18
19 // DOMUI
20 virtual void RenderViewCreated(RenderViewHost* render_view_host);
21 virtual void ProcessDOMUIMessage(const std::string& message,
22 const std::string& content,
23 int request_id,
24 bool has_callback);
25
26 // ExtensionFunctionDispatcher::Delegate
27 virtual Browser* GetBrowser();
28
29 private:
30 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_;
31 };
32
33 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DOM_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/dom_ui_factory.cc ('k') | chrome/browser/extensions/extension_dom_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698