| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/views/extensions/extension_view.h" | 24 #include "chrome/browser/ui/views/extensions/extension_view.h" |
| 25 #elif defined(OS_MACOSX) | 25 #elif defined(OS_MACOSX) |
| 26 #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h" | 26 #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h" |
| 27 #elif defined(TOOLKIT_GTK) | 27 #elif defined(TOOLKIT_GTK) |
| 28 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" | 28 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" |
| 29 #endif | 29 #endif |
| 30 | 30 |
| 31 class Browser; | 31 class Browser; |
| 32 class Extension; | 32 class Extension; |
| 33 class PrefsTabHelper; | 33 class PrefsTabHelper; |
| 34 class RenderWidgetHostView; | |
| 35 struct WebPreferences; | 34 struct WebPreferences; |
| 36 | 35 |
| 37 namespace content { | 36 namespace content { |
| 38 class RenderProcessHost; | 37 class RenderProcessHost; |
| 38 class RenderWidgetHostView; |
| 39 class SiteInstance; | 39 class SiteInstance; |
| 40 } | 40 } |
| 41 | 41 |
| 42 // This class is the browser component of an extension component's RenderView. | 42 // This class is the browser component of an extension component's RenderView. |
| 43 // It handles setting up the renderer process, if needed, with special | 43 // It handles setting up the renderer process, if needed, with special |
| 44 // privileges available to extensions. It may have a view to be shown in the | 44 // privileges available to extensions. It may have a view to be shown in the |
| 45 // browser UI, or it may be hidden. | 45 // browser UI, or it may be hidden. |
| 46 class ExtensionHost : public content::WebContentsDelegate, | 46 class ExtensionHost : public content::WebContentsDelegate, |
| 47 public content::WebContentsObserver, | 47 public content::WebContentsObserver, |
| 48 public ExtensionFunctionDispatcher::Delegate, | 48 public ExtensionFunctionDispatcher::Delegate, |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 // The relevant WebContents associated with this ExtensionHost, if any. | 241 // The relevant WebContents associated with this ExtensionHost, if any. |
| 242 content::WebContents* associated_web_contents_; | 242 content::WebContents* associated_web_contents_; |
| 243 | 243 |
| 244 // Used to measure how long it's been since the host was created. | 244 // Used to measure how long it's been since the host was created. |
| 245 PerfTimer since_created_; | 245 PerfTimer since_created_; |
| 246 | 246 |
| 247 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 247 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
| 248 }; | 248 }; |
| 249 | 249 |
| 250 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 250 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
| OLD | NEW |