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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 const Value* content, | 112 const Value* content, |
113 int request_id, | 113 int request_id, |
114 bool has_callback); | 114 bool has_callback); |
115 virtual void RunJavaScriptMessage(const std::wstring& message, | 115 virtual void RunJavaScriptMessage(const std::wstring& message, |
116 const std::wstring& default_prompt, | 116 const std::wstring& default_prompt, |
117 const GURL& frame_url, | 117 const GURL& frame_url, |
118 const int flags, | 118 const int flags, |
119 IPC::Message* reply_msg, | 119 IPC::Message* reply_msg, |
120 bool* did_suppress_message); | 120 bool* did_suppress_message); |
121 virtual void Close(RenderViewHost* render_view_host); | 121 virtual void Close(RenderViewHost* render_view_host); |
122 virtual RendererPreferences GetRendererPrefs() const; | 122 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; |
123 | 123 |
124 // RenderViewHostDelegate::View | 124 // RenderViewHostDelegate::View |
125 virtual void CreateNewWindow(int route_id); | 125 virtual void CreateNewWindow(int route_id); |
126 virtual void CreateNewWidget(int route_id, bool activatable); | 126 virtual void CreateNewWidget(int route_id, bool activatable); |
127 virtual void ShowCreatedWindow(int route_id, | 127 virtual void ShowCreatedWindow(int route_id, |
128 WindowOpenDisposition disposition, | 128 WindowOpenDisposition disposition, |
129 const gfx::Rect& initial_pos, | 129 const gfx::Rect& initial_pos, |
130 bool user_gesture, | 130 bool user_gesture, |
131 const GURL& creator_url); | 131 const GURL& creator_url); |
132 virtual void ShowCreatedWidget(int route_id, | 132 virtual void ShowCreatedWidget(int route_id, |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 // are used here, others are not hosted by ExtensionHost. | 221 // are used here, others are not hosted by ExtensionHost. |
222 ViewType::Type extension_host_type_; | 222 ViewType::Type extension_host_type_; |
223 | 223 |
224 // Used to measure how long it's been since the host was created. | 224 // Used to measure how long it's been since the host was created. |
225 PerfTimer since_created_; | 225 PerfTimer since_created_; |
226 | 226 |
227 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 227 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
228 }; | 228 }; |
229 | 229 |
230 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 230 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
OLD | NEW |