| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 virtual RenderViewHostDelegate::View* GetViewDelegate(); | 118 virtual RenderViewHostDelegate::View* GetViewDelegate(); |
| 119 virtual const GURL& GetURL() const { return url_; } | 119 virtual const GURL& GetURL() const { return url_; } |
| 120 virtual void RenderViewCreated(RenderViewHost* render_view_host); | 120 virtual void RenderViewCreated(RenderViewHost* render_view_host); |
| 121 virtual ViewType::Type GetRenderViewType() const; | 121 virtual ViewType::Type GetRenderViewType() const; |
| 122 virtual int GetBrowserWindowID() const; | 122 virtual int GetBrowserWindowID() const; |
| 123 virtual void RenderViewGone(RenderViewHost* render_view_host); | 123 virtual void RenderViewGone(RenderViewHost* render_view_host); |
| 124 virtual void DidNavigate(RenderViewHost* render_view_host, | 124 virtual void DidNavigate(RenderViewHost* render_view_host, |
| 125 const ViewHostMsg_FrameNavigate_Params& params); | 125 const ViewHostMsg_FrameNavigate_Params& params); |
| 126 virtual void DidStopLoading(); | 126 virtual void DidStopLoading(); |
| 127 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host); | 127 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host); |
| 128 virtual void DocumentOnLoadCompletedInMainFrame( |
| 129 RenderViewHost* render_view_host); |
| 128 | 130 |
| 129 virtual WebPreferences GetWebkitPrefs(); | 131 virtual WebPreferences GetWebkitPrefs(); |
| 130 virtual void ProcessDOMUIMessage(const std::string& message, | 132 virtual void ProcessDOMUIMessage(const std::string& message, |
| 131 const Value* content, | 133 const Value* content, |
| 132 const GURL& source_url, | 134 const GURL& source_url, |
| 133 int request_id, | 135 int request_id, |
| 134 bool has_callback); | 136 bool has_callback); |
| 135 virtual void RunJavaScriptMessage(const std::wstring& message, | 137 virtual void RunJavaScriptMessage(const std::wstring& message, |
| 136 const std::wstring& default_prompt, | 138 const std::wstring& default_prompt, |
| 137 const GURL& frame_url, | 139 const GURL& frame_url, |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 // The relevant TabContents associated with this ExtensionHost, if any. | 268 // The relevant TabContents associated with this ExtensionHost, if any. |
| 267 TabContents* associated_tab_contents_; | 269 TabContents* associated_tab_contents_; |
| 268 | 270 |
| 269 // Used to measure how long it's been since the host was created. | 271 // Used to measure how long it's been since the host was created. |
| 270 PerfTimer since_created_; | 272 PerfTimer since_created_; |
| 271 | 273 |
| 272 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 274 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
| 273 }; | 275 }; |
| 274 | 276 |
| 275 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 277 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
| OLD | NEW |