| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_HOST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/perftimer.h" | 10 #include "base/perftimer.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 // Insert the theme CSS for a toolstrip/mole. | 98 // Insert the theme CSS for a toolstrip/mole. |
| 99 void InsertThemeCSS(); | 99 void InsertThemeCSS(); |
| 100 | 100 |
| 101 // RenderViewHostDelegate implementation. | 101 // RenderViewHostDelegate implementation. |
| 102 virtual RenderViewHostDelegate::View* GetViewDelegate(); | 102 virtual RenderViewHostDelegate::View* GetViewDelegate(); |
| 103 virtual const GURL& GetURL() const { return url_; } | 103 virtual const GURL& GetURL() const { return url_; } |
| 104 virtual void RenderViewCreated(RenderViewHost* render_view_host); | 104 virtual void RenderViewCreated(RenderViewHost* render_view_host); |
| 105 virtual ViewType::Type GetRenderViewType() const; | 105 virtual ViewType::Type GetRenderViewType() const; |
| 106 virtual int GetBrowserWindowID() const; | 106 virtual int GetBrowserWindowID() const; |
| 107 virtual void RenderViewGone(RenderViewHost* render_view_host); | |
| 108 virtual void DidNavigate(RenderViewHost* render_view_host, | 107 virtual void DidNavigate(RenderViewHost* render_view_host, |
| 109 const ViewHostMsg_FrameNavigate_Params& params); | 108 const ViewHostMsg_FrameNavigate_Params& params); |
| 110 virtual void DidStopLoading(); | 109 virtual void DidStopLoading(); |
| 111 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host); | 110 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host); |
| 112 | 111 |
| 113 virtual WebPreferences GetWebkitPrefs(); | 112 virtual WebPreferences GetWebkitPrefs(); |
| 114 virtual void ProcessDOMUIMessage(const std::string& message, | 113 virtual void ProcessDOMUIMessage(const std::string& message, |
| 115 const Value* content, | 114 const Value* content, |
| 116 int request_id, | 115 int request_id, |
| 117 bool has_callback); | 116 bool has_callback); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 // are used here, others are not hosted by ExtensionHost. | 238 // are used here, others are not hosted by ExtensionHost. |
| 240 ViewType::Type extension_host_type_; | 239 ViewType::Type extension_host_type_; |
| 241 | 240 |
| 242 // Used to measure how long it's been since the host was created. | 241 // Used to measure how long it's been since the host was created. |
| 243 PerfTimer since_created_; | 242 PerfTimer since_created_; |
| 244 | 243 |
| 245 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 244 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
| 246 }; | 245 }; |
| 247 | 246 |
| 248 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 247 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
| OLD | NEW |