| 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_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ |
| 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 const ComponentExtensionResourceManager* | 83 const ComponentExtensionResourceManager* |
| 84 GetComponentExtensionResourceManager() override; | 84 GetComponentExtensionResourceManager() override; |
| 85 void BroadcastEventToRenderers( | 85 void BroadcastEventToRenderers( |
| 86 events::HistogramValue histogram_value, | 86 events::HistogramValue histogram_value, |
| 87 const std::string& event_name, | 87 const std::string& event_name, |
| 88 std::unique_ptr<base::ListValue> args) override; | 88 std::unique_ptr<base::ListValue> args) override; |
| 89 net::NetLog* GetNetLog() override; | 89 net::NetLog* GetNetLog() override; |
| 90 ExtensionCache* GetExtensionCache() override; | 90 ExtensionCache* GetExtensionCache() override; |
| 91 bool IsBackgroundUpdateAllowed() override; | 91 bool IsBackgroundUpdateAllowed() override; |
| 92 bool IsMinBrowserVersionSupported(const std::string& min_version) override; | 92 bool IsMinBrowserVersionSupported(const std::string& min_version) override; |
| 93 void SaveImageDataToClipboard(const std::vector<char>& image_data, |
| 94 const std::string& type, |
| 95 const base::Closure& success_callback, |
| 96 const base::Closure& error_callback) override; |
| 93 ExtensionWebContentsObserver* GetExtensionWebContentsObserver( | 97 ExtensionWebContentsObserver* GetExtensionWebContentsObserver( |
| 94 content::WebContents* web_contents) override; | 98 content::WebContents* web_contents) override; |
| 95 KioskDelegate* GetKioskDelegate() override; | 99 KioskDelegate* GetKioskDelegate() override; |
| 96 | 100 |
| 97 // Sets the API client. | 101 // Sets the API client. |
| 98 void SetAPIClientForTest(ExtensionsAPIClient* api_client); | 102 void SetAPIClientForTest(ExtensionsAPIClient* api_client); |
| 99 | 103 |
| 100 private: | 104 private: |
| 101 // The single BrowserContext for app_shell. Not owned. | 105 // The single BrowserContext for app_shell. Not owned. |
| 102 content::BrowserContext* browser_context_; | 106 content::BrowserContext* browser_context_; |
| 103 | 107 |
| 104 // The PrefService for |browser_context_|. Not owned. | 108 // The PrefService for |browser_context_|. Not owned. |
| 105 PrefService* pref_service_; | 109 PrefService* pref_service_; |
| 106 | 110 |
| 107 // Support for extension APIs. | 111 // Support for extension APIs. |
| 108 std::unique_ptr<ExtensionsAPIClient> api_client_; | 112 std::unique_ptr<ExtensionsAPIClient> api_client_; |
| 109 | 113 |
| 110 // The extension cache used for download and installation. | 114 // The extension cache used for download and installation. |
| 111 std::unique_ptr<ExtensionCache> extension_cache_; | 115 std::unique_ptr<ExtensionCache> extension_cache_; |
| 112 | 116 |
| 113 std::unique_ptr<KioskDelegate> kiosk_delegate_; | 117 std::unique_ptr<KioskDelegate> kiosk_delegate_; |
| 114 | 118 |
| 115 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient); | 119 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient); |
| 116 }; | 120 }; |
| 117 | 121 |
| 118 } // namespace extensions | 122 } // namespace extensions |
| 119 | 123 |
| 120 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ | 124 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |