| OLD | NEW |
| (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_ |
| OLD | NEW |