| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // are used here, others are not hosted by ExtensionHost. | 235 // are used here, others are not hosted by ExtensionHost. |
| 236 ViewType::Type extension_host_type_; | 236 ViewType::Type extension_host_type_; |
| 237 | 237 |
| 238 // Used to measure how long it's been since the host was created. | 238 // Used to measure how long it's been since the host was created. |
| 239 PerfTimer since_created_; | 239 PerfTimer since_created_; |
| 240 | 240 |
| 241 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 241 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
| 242 }; | 242 }; |
| 243 | 243 |
| 244 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 244 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
| OLD | NEW |