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/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 // RenderViewHostDelegate implementation. | 92 // RenderViewHostDelegate implementation. |
93 virtual RenderViewHostDelegate::View* GetViewDelegate(); | 93 virtual RenderViewHostDelegate::View* GetViewDelegate(); |
94 virtual const GURL& GetURL() const { return url_; } | 94 virtual const GURL& GetURL() const { return url_; } |
95 virtual void RenderViewCreated(RenderViewHost* render_view_host); | 95 virtual void RenderViewCreated(RenderViewHost* render_view_host); |
96 virtual ViewType::Type GetRenderViewType() const; | 96 virtual ViewType::Type GetRenderViewType() const; |
97 virtual int GetBrowserWindowID() const; | 97 virtual int GetBrowserWindowID() const; |
98 virtual void RenderViewGone(RenderViewHost* render_view_host); | 98 virtual void RenderViewGone(RenderViewHost* render_view_host); |
99 virtual void DidNavigate(RenderViewHost* render_view_host, | 99 virtual void DidNavigate(RenderViewHost* render_view_host, |
100 const ViewHostMsg_FrameNavigate_Params& params); | 100 const ViewHostMsg_FrameNavigate_Params& params); |
101 virtual void DidStopLoading(RenderViewHost* render_view_host); | 101 virtual void DidStopLoading(); |
102 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host); | 102 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host); |
103 | 103 |
104 virtual WebPreferences GetWebkitPrefs(); | 104 virtual WebPreferences GetWebkitPrefs(); |
105 virtual void ProcessDOMUIMessage(const std::string& message, | 105 virtual void ProcessDOMUIMessage(const std::string& message, |
106 const Value* content, | 106 const Value* content, |
107 int request_id, | 107 int request_id, |
108 bool has_callback); | 108 bool has_callback); |
109 virtual void RunJavaScriptMessage(const std::wstring& message, | 109 virtual void RunJavaScriptMessage(const std::wstring& message, |
110 const std::wstring& default_prompt, | 110 const std::wstring& default_prompt, |
111 const GURL& frame_url, | 111 const GURL& frame_url, |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 197 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
198 | 198 |
199 // Only EXTENSION_TOOLSTRIP and EXTENSION_BACKGROUND_PAGE are used here, | 199 // Only EXTENSION_TOOLSTRIP and EXTENSION_BACKGROUND_PAGE are used here, |
200 // others are not hostd by ExtensionHost. | 200 // others are not hostd by ExtensionHost. |
201 ViewType::Type extension_host_type_; | 201 ViewType::Type extension_host_type_; |
202 | 202 |
203 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 203 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
204 }; | 204 }; |
205 | 205 |
206 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 206 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
OLD | NEW |