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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ExtensionWebContentsObserver* GetExtensionWebContentsObserver( | 93 ExtensionWebContentsObserver* GetExtensionWebContentsObserver( |
94 content::WebContents* web_contents) override; | 94 content::WebContents* web_contents) override; |
95 ExtensionNavigationUIData* GetExtensionNavigationUIData( | 95 ExtensionNavigationUIData* GetExtensionNavigationUIData( |
96 net::URLRequest* request) override; | 96 net::URLRequest* request) override; |
97 KioskDelegate* GetKioskDelegate() override; | 97 KioskDelegate* GetKioskDelegate() override; |
| 98 bool IsLockScreenContext(content::BrowserContext* context) override; |
98 | 99 |
99 // Sets the API client. | 100 // Sets the API client. |
100 void SetAPIClientForTest(ExtensionsAPIClient* api_client); | 101 void SetAPIClientForTest(ExtensionsAPIClient* api_client); |
101 | 102 |
102 private: | 103 private: |
103 // The single BrowserContext for app_shell. Not owned. | 104 // The single BrowserContext for app_shell. Not owned. |
104 content::BrowserContext* browser_context_; | 105 content::BrowserContext* browser_context_; |
105 | 106 |
106 // The PrefService for |browser_context_|. Not owned. | 107 // The PrefService for |browser_context_|. Not owned. |
107 PrefService* pref_service_; | 108 PrefService* pref_service_; |
108 | 109 |
109 // Support for extension APIs. | 110 // Support for extension APIs. |
110 std::unique_ptr<ExtensionsAPIClient> api_client_; | 111 std::unique_ptr<ExtensionsAPIClient> api_client_; |
111 | 112 |
112 // The extension cache used for download and installation. | 113 // The extension cache used for download and installation. |
113 std::unique_ptr<ExtensionCache> extension_cache_; | 114 std::unique_ptr<ExtensionCache> extension_cache_; |
114 | 115 |
115 std::unique_ptr<KioskDelegate> kiosk_delegate_; | 116 std::unique_ptr<KioskDelegate> kiosk_delegate_; |
116 | 117 |
117 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient); | 118 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient); |
118 }; | 119 }; |
119 | 120 |
120 } // namespace extensions | 121 } // namespace extensions |
121 | 122 |
122 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ | 123 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |