| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 void CleanUpWebView(content::BrowserContext* browser_context, | 113 void CleanUpWebView(content::BrowserContext* browser_context, |
| 114 int embedder_process_id, | 114 int embedder_process_id, |
| 115 int view_instance_id) override; | 115 int view_instance_id) override; |
| 116 void AttachExtensionTaskManagerTag(content::WebContents* web_contents, | 116 void AttachExtensionTaskManagerTag(content::WebContents* web_contents, |
| 117 ViewType view_type) override; | 117 ViewType view_type) override; |
| 118 scoped_refptr<update_client::UpdateClient> CreateUpdateClient( | 118 scoped_refptr<update_client::UpdateClient> CreateUpdateClient( |
| 119 content::BrowserContext* context) override; | 119 content::BrowserContext* context) override; |
| 120 std::unique_ptr<ExtensionApiFrameIdMapHelper> | 120 std::unique_ptr<ExtensionApiFrameIdMapHelper> |
| 121 CreateExtensionApiFrameIdMapHelper( | 121 CreateExtensionApiFrameIdMapHelper( |
| 122 ExtensionApiFrameIdMap* map) override; | 122 ExtensionApiFrameIdMap* map) override; |
| 123 std::unique_ptr<ExtensionChooserDialog> |
| 124 CreateBluetoothChromeExtensionChooserDialog( |
| 125 content::WebContents* web_contents) override; |
| 123 | 126 |
| 124 private: | 127 private: |
| 125 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; | 128 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; |
| 126 | 129 |
| 127 // Observer for Chrome-specific notifications. | 130 // Observer for Chrome-specific notifications. |
| 128 ChromeNotificationObserver notification_observer_; | 131 ChromeNotificationObserver notification_observer_; |
| 129 | 132 |
| 130 // Support for ProcessManager. | 133 // Support for ProcessManager. |
| 131 std::unique_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; | 134 std::unique_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; |
| 132 | 135 |
| 133 // Client for API implementations. | 136 // Client for API implementations. |
| 134 std::unique_ptr<ChromeExtensionsAPIClient> api_client_; | 137 std::unique_ptr<ChromeExtensionsAPIClient> api_client_; |
| 135 | 138 |
| 136 std::unique_ptr<ChromeComponentExtensionResourceManager> resource_manager_; | 139 std::unique_ptr<ChromeComponentExtensionResourceManager> resource_manager_; |
| 137 | 140 |
| 138 std::unique_ptr<ExtensionCache> extension_cache_; | 141 std::unique_ptr<ExtensionCache> extension_cache_; |
| 139 | 142 |
| 140 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); | 143 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); |
| 141 }; | 144 }; |
| 142 | 145 |
| 143 } // namespace extensions | 146 } // namespace extensions |
| 144 | 147 |
| 145 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 148 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |