OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_EXTENSION_HOST_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_HOST_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSION_HOST_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
17 #include "base/timer/elapsed_timer.h" | 17 #include "base/timer/elapsed_timer.h" |
18 #include "content/public/browser/web_contents_delegate.h" | 18 #include "content/public/browser/web_contents_delegate.h" |
19 #include "content/public/browser/web_contents_observer.h" | 19 #include "content/public/browser/web_contents_observer.h" |
20 #include "extensions/browser/deferred_start_render_host.h" | 20 #include "extensions/browser/deferred_start_render_host.h" |
21 #include "extensions/browser/extension_function_dispatcher.h" | 21 #include "extensions/browser/extension_function_dispatcher.h" |
22 #include "extensions/browser/extension_registry_observer.h" | 22 #include "extensions/browser/extension_registry_observer.h" |
23 #include "extensions/common/stack_frame.h" | 23 #include "extensions/common/stack_frame.h" |
24 #include "extensions/common/view_type.h" | 24 #include "extensions/common/view_type.h" |
25 | 25 |
26 class PrefsTabHelper; | |
27 | |
28 namespace content { | 26 namespace content { |
29 class BrowserContext; | 27 class BrowserContext; |
30 class RenderProcessHost; | 28 class RenderProcessHost; |
31 class RenderWidgetHostView; | |
32 class SiteInstance; | 29 class SiteInstance; |
33 } | 30 } |
34 | 31 |
35 namespace extensions { | 32 namespace extensions { |
36 class Extension; | 33 class Extension; |
37 class ExtensionHostDelegate; | 34 class ExtensionHostDelegate; |
38 class ExtensionHostObserver; | 35 class ExtensionHostObserver; |
39 class ExtensionHostQueue; | 36 class ExtensionHostQueue; |
40 class WindowController; | |
41 | 37 |
42 // This class is the browser component of an extension component's RenderView. | 38 // This class is the browser component of an extension component's RenderView. |
43 // It handles setting up the renderer process, if needed, with special | 39 // 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 | 40 // privileges available to extensions. It may have a view to be shown in the |
45 // browser UI, or it may be hidden. | 41 // browser UI, or it may be hidden. |
46 // | 42 // |
47 // If you are adding code that only affects visible extension views (and not | 43 // If you are adding code that only affects visible extension views (and not |
48 // invisible background pages) you should add it to ExtensionViewHost. | 44 // invisible background pages) you should add it to ExtensionViewHost. |
49 class ExtensionHost : public DeferredStartRenderHost, | 45 class ExtensionHost : public DeferredStartRenderHost, |
50 public content::WebContentsDelegate, | 46 public content::WebContentsDelegate, |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 base::ObserverList<ExtensionHostObserver> observer_list_; | 214 base::ObserverList<ExtensionHostObserver> observer_list_; |
219 base::ObserverList<DeferredStartRenderHostObserver> | 215 base::ObserverList<DeferredStartRenderHostObserver> |
220 deferred_start_render_host_observer_list_; | 216 deferred_start_render_host_observer_list_; |
221 | 217 |
222 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 218 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
223 }; | 219 }; |
224 | 220 |
225 } // namespace extensions | 221 } // namespace extensions |
226 | 222 |
227 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ | 223 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ |
OLD | NEW |