| 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> |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 bool CheckMediaAccessPermission(content::WebContents* web_contents, | 124 bool CheckMediaAccessPermission(content::WebContents* web_contents, |
| 125 const GURL& security_origin, | 125 const GURL& security_origin, |
| 126 content::MediaStreamType type) override; | 126 content::MediaStreamType type) override; |
| 127 bool IsNeverVisible(content::WebContents* web_contents) override; | 127 bool IsNeverVisible(content::WebContents* web_contents) override; |
| 128 | 128 |
| 129 // ExtensionRegistryObserver: | 129 // ExtensionRegistryObserver: |
| 130 void OnExtensionReady(content::BrowserContext* browser_context, | 130 void OnExtensionReady(content::BrowserContext* browser_context, |
| 131 const Extension* extension) override; | 131 const Extension* extension) override; |
| 132 void OnExtensionUnloaded(content::BrowserContext* browser_context, | 132 void OnExtensionUnloaded(content::BrowserContext* browser_context, |
| 133 const Extension* extension, | 133 const Extension* extension, |
| 134 UnloadedExtensionInfo::Reason reason) override; | 134 UnloadedExtensionReason reason) override; |
| 135 | 135 |
| 136 protected: | 136 protected: |
| 137 // Called each time this ExtensionHost completes a load finishes loading, | 137 // Called each time this ExtensionHost completes a load finishes loading, |
| 138 // before any stop-loading notifications or observer methods are called. | 138 // before any stop-loading notifications or observer methods are called. |
| 139 virtual void OnDidStopFirstLoad(); | 139 virtual void OnDidStopFirstLoad(); |
| 140 | 140 |
| 141 // Navigates to the initial page. | 141 // Navigates to the initial page. |
| 142 virtual void LoadInitialURL(); | 142 virtual void LoadInitialURL(); |
| 143 | 143 |
| 144 // Returns true if we're hosting a background page. | 144 // Returns true if we're hosting a background page. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 base::ObserverList<ExtensionHostObserver> observer_list_; | 214 base::ObserverList<ExtensionHostObserver> observer_list_; |
| 215 base::ObserverList<DeferredStartRenderHostObserver> | 215 base::ObserverList<DeferredStartRenderHostObserver> |
| 216 deferred_start_render_host_observer_list_; | 216 deferred_start_render_host_observer_list_; |
| 217 | 217 |
| 218 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 218 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 } // namespace extensions | 221 } // namespace extensions |
| 222 | 222 |
| 223 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ | 223 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ |
| OLD | NEW |