| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 const GURL& frame_url, | 139 const GURL& frame_url, |
| 140 const int flags, | 140 const int flags, |
| 141 IPC::Message* reply_msg, | 141 IPC::Message* reply_msg, |
| 142 bool* did_suppress_message); | 142 bool* did_suppress_message); |
| 143 virtual void Close(RenderViewHost* render_view_host); | 143 virtual void Close(RenderViewHost* render_view_host); |
| 144 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; | 144 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; |
| 145 | 145 |
| 146 // RenderViewHostDelegate::View | 146 // RenderViewHostDelegate::View |
| 147 virtual void CreateNewWindow( | 147 virtual void CreateNewWindow( |
| 148 int route_id, | 148 int route_id, |
| 149 WindowContainerType window_container_type); | 149 WindowContainerType window_container_type, |
| 150 const string16& frame_name); |
| 150 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); | 151 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); |
| 151 virtual void ShowCreatedWindow(int route_id, | 152 virtual void ShowCreatedWindow(int route_id, |
| 152 WindowOpenDisposition disposition, | 153 WindowOpenDisposition disposition, |
| 153 const gfx::Rect& initial_pos, | 154 const gfx::Rect& initial_pos, |
| 154 bool user_gesture); | 155 bool user_gesture); |
| 155 virtual void ShowCreatedWidget(int route_id, | 156 virtual void ShowCreatedWidget(int route_id, |
| 156 const gfx::Rect& initial_pos); | 157 const gfx::Rect& initial_pos); |
| 157 virtual void ShowContextMenu(const ContextMenuParams& params); | 158 virtual void ShowContextMenu(const ContextMenuParams& params); |
| 158 virtual void StartDragging(const WebDropData& drop_data, | 159 virtual void StartDragging(const WebDropData& drop_data, |
| 159 WebKit::WebDragOperationsMask allowed_operations, | 160 WebKit::WebDragOperationsMask allowed_operations, |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 // The relevant TabContents associated with this ExtensionHost, if any. | 269 // The relevant TabContents associated with this ExtensionHost, if any. |
| 269 TabContents* associated_tab_contents_; | 270 TabContents* associated_tab_contents_; |
| 270 | 271 |
| 271 // Used to measure how long it's been since the host was created. | 272 // Used to measure how long it's been since the host was created. |
| 272 PerfTimer since_created_; | 273 PerfTimer since_created_; |
| 273 | 274 |
| 274 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 275 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
| 275 }; | 276 }; |
| 276 | 277 |
| 277 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 278 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
| OLD | NEW |