OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 13 matching lines...) Expand all Loading... |
24 #elif defined(OS_MACOSX) | 24 #elif defined(OS_MACOSX) |
25 #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h" | 25 #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h" |
26 #elif defined(TOOLKIT_GTK) | 26 #elif defined(TOOLKIT_GTK) |
27 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" | 27 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" |
28 #endif | 28 #endif |
29 | 29 |
30 class Browser; | 30 class Browser; |
31 class Extension; | 31 class Extension; |
32 class RenderWidgetHostView; | 32 class RenderWidgetHostView; |
33 class TabContents; | 33 class TabContents; |
34 struct ViewHostMsg_RunFileChooser_Params; | |
35 struct WebPreferences; | 34 struct WebPreferences; |
36 | 35 |
37 namespace content { | 36 namespace content { |
38 class RenderProcessHost; | 37 class RenderProcessHost; |
39 } | 38 } |
40 | 39 |
41 // This class is the browser component of an extension component's RenderView. | 40 // This class is the browser component of an extension component's RenderView. |
42 // It handles setting up the renderer process, if needed, with special | 41 // It handles setting up the renderer process, if needed, with special |
43 // privileges available to extensions. It may have a view to be shown in the | 42 // privileges available to extensions. It may have a view to be shown in the |
44 // browser UI, or it may be hidden. | 43 // browser UI, or it may be hidden. |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // The relevant TabContents associated with this ExtensionHost, if any. | 208 // The relevant TabContents associated with this ExtensionHost, if any. |
210 TabContents* associated_tab_contents_; | 209 TabContents* associated_tab_contents_; |
211 | 210 |
212 // Used to measure how long it's been since the host was created. | 211 // Used to measure how long it's been since the host was created. |
213 PerfTimer since_created_; | 212 PerfTimer since_created_; |
214 | 213 |
215 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 214 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
216 }; | 215 }; |
217 | 216 |
218 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 217 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
OLD | NEW |