| 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> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "chrome/browser/extensions/chrome_notification_observer.h" | |
| 18 #include "extensions/browser/extensions_browser_client.h" | 17 #include "extensions/browser/extensions_browser_client.h" |
| 19 | 18 |
| 20 namespace base { | 19 namespace base { |
| 21 class CommandLine; | 20 class CommandLine; |
| 22 } | 21 } |
| 23 | 22 |
| 24 namespace content { | 23 namespace content { |
| 25 class BrowserContext; | 24 class BrowserContext; |
| 26 } | 25 } |
| 27 | 26 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 CreateExtensionApiFrameIdMapHelper( | 118 CreateExtensionApiFrameIdMapHelper( |
| 120 ExtensionApiFrameIdMap* map) override; | 119 ExtensionApiFrameIdMap* map) override; |
| 121 std::unique_ptr<content::BluetoothChooser> CreateBluetoothChooser( | 120 std::unique_ptr<content::BluetoothChooser> CreateBluetoothChooser( |
| 122 content::RenderFrameHost* frame, | 121 content::RenderFrameHost* frame, |
| 123 const content::BluetoothChooser::EventHandler& event_handler) override; | 122 const content::BluetoothChooser::EventHandler& event_handler) override; |
| 124 bool IsActivityLoggingEnabled(content::BrowserContext* context) override; | 123 bool IsActivityLoggingEnabled(content::BrowserContext* context) override; |
| 125 | 124 |
| 126 private: | 125 private: |
| 127 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; | 126 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; |
| 128 | 127 |
| 129 // Observer for Chrome-specific notifications. | |
| 130 ChromeNotificationObserver notification_observer_; | |
| 131 | |
| 132 // Support for ProcessManager. | 128 // Support for ProcessManager. |
| 133 std::unique_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; | 129 std::unique_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; |
| 134 | 130 |
| 135 // Client for API implementations. | 131 // Client for API implementations. |
| 136 std::unique_ptr<ChromeExtensionsAPIClient> api_client_; | 132 std::unique_ptr<ChromeExtensionsAPIClient> api_client_; |
| 137 | 133 |
| 138 std::unique_ptr<ChromeComponentExtensionResourceManager> resource_manager_; | 134 std::unique_ptr<ChromeComponentExtensionResourceManager> resource_manager_; |
| 139 | 135 |
| 140 std::unique_ptr<ExtensionCache> extension_cache_; | 136 std::unique_ptr<ExtensionCache> extension_cache_; |
| 141 | 137 |
| 142 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); | 138 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); |
| 143 }; | 139 }; |
| 144 | 140 |
| 145 } // namespace extensions | 141 } // namespace extensions |
| 146 | 142 |
| 147 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 143 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |