| OLD | NEW |
| 1 // Copyright (c) 2010 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_EXTENSIONS_EXTENSION_DOM_UI_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DOM_UI_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DOM_UI_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DOM_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 40 ExtensionFunctionDispatcher* extension_function_dispatcher() const { | 40 ExtensionFunctionDispatcher* extension_function_dispatcher() const { |
| 41 return extension_function_dispatcher_.get(); | 41 return extension_function_dispatcher_.get(); |
| 42 } | 42 } |
| 43 | 43 |
| 44 // DOMUI | 44 // DOMUI |
| 45 virtual void RenderViewCreated(RenderViewHost* render_view_host); | 45 virtual void RenderViewCreated(RenderViewHost* render_view_host); |
| 46 virtual void RenderViewReused(RenderViewHost* render_view_host); | 46 virtual void RenderViewReused(RenderViewHost* render_view_host); |
| 47 virtual void ProcessDOMUIMessage(const ViewHostMsg_DomMessage_Params& params); | 47 virtual void ProcessDOMUIMessage(const ViewHostMsg_DomMessage_Params& params); |
| 48 | 48 |
| 49 // ExtensionFunctionDispatcher::Delegate | 49 // ExtensionFunctionDispatcher::Delegate |
| 50 virtual Browser* GetBrowser() const; | 50 virtual Browser* GetBrowser(); |
| 51 virtual gfx::NativeView GetNativeViewOfHost(); | 51 virtual gfx::NativeView GetNativeViewOfHost(); |
| 52 virtual gfx::NativeWindow GetCustomFrameNativeWindow(); | 52 virtual gfx::NativeWindow GetCustomFrameNativeWindow(); |
| 53 virtual TabContents* associated_tab_contents() const; | 53 virtual TabContents* associated_tab_contents() const; |
| 54 | 54 |
| 55 virtual ExtensionBookmarkManagerEventRouter* | 55 virtual ExtensionBookmarkManagerEventRouter* |
| 56 extension_bookmark_manager_event_router(); | 56 extension_bookmark_manager_event_router(); |
| 57 | 57 |
| 58 // BrowserURLHandler | 58 // BrowserURLHandler |
| 59 static bool HandleChromeURLOverride(GURL* url, Profile* profile); | 59 static bool HandleChromeURLOverride(GURL* url, Profile* profile); |
| 60 | 60 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // TODO(aa): This seems out of place. Why is it not with the event routers for | 97 // TODO(aa): This seems out of place. Why is it not with the event routers for |
| 98 // the other extension APIs? | 98 // the other extension APIs? |
| 99 scoped_ptr<ExtensionBookmarkManagerEventRouter> | 99 scoped_ptr<ExtensionBookmarkManagerEventRouter> |
| 100 extension_bookmark_manager_event_router_; | 100 extension_bookmark_manager_event_router_; |
| 101 | 101 |
| 102 // The URL this DOMUI was created for. | 102 // The URL this DOMUI was created for. |
| 103 GURL url_; | 103 GURL url_; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DOM_UI_H_ | 106 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DOM_UI_H_ |
| OLD | NEW |