| 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 #include "apps/shell/browser/shell_extensions_browser_client.h" | 5 #include "apps/shell/browser/shell_extensions_browser_client.h" |
| 6 | 6 |
| 7 #include "apps/shell/browser/shell_app_sorting.h" | 7 #include "apps/shell/browser/shell_app_sorting.h" |
| 8 #include "apps/shell/browser/shell_extension_system_factory.h" | 8 #include "apps/shell/browser/shell_extension_system_factory.h" |
| 9 #include "apps/shell/browser/shell_extension_web_contents_observer.h" | 9 #include "apps/shell/browser/shell_extension_web_contents_observer.h" |
| 10 #include "apps/shell/browser/shell_runtime_api_delegate.h" | 10 #include "apps/shell/browser/shell_runtime_api_delegate.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 PrefService* ShellExtensionsBrowserClient::GetPrefServiceForContext( | 177 PrefService* ShellExtensionsBrowserClient::GetPrefServiceForContext( |
| 178 BrowserContext* context) { | 178 BrowserContext* context) { |
| 179 return prefs_.get(); | 179 return prefs_.get(); |
| 180 } | 180 } |
| 181 | 181 |
| 182 void ShellExtensionsBrowserClient::GetEarlyExtensionPrefsObservers( | 182 void ShellExtensionsBrowserClient::GetEarlyExtensionPrefsObservers( |
| 183 content::BrowserContext* context, | 183 content::BrowserContext* context, |
| 184 std::vector<ExtensionPrefsObserver*>* observers) const {} | 184 std::vector<ExtensionPrefsObserver*>* observers) const {} |
| 185 | 185 |
| 186 ProcessManagerDelegate* | 186 bool ShellExtensionsBrowserClient::DeferLoadingBackgroundHosts( |
| 187 ShellExtensionsBrowserClient::GetProcessManagerDelegate() const { | 187 BrowserContext* context) const { |
| 188 return NULL; | 188 return false; |
| 189 } |
| 190 |
| 191 bool ShellExtensionsBrowserClient::IsBackgroundPageAllowed( |
| 192 BrowserContext* context) const { |
| 193 return true; |
| 189 } | 194 } |
| 190 | 195 |
| 191 scoped_ptr<ExtensionHostDelegate> | 196 scoped_ptr<ExtensionHostDelegate> |
| 192 ShellExtensionsBrowserClient::CreateExtensionHostDelegate() { | 197 ShellExtensionsBrowserClient::CreateExtensionHostDelegate() { |
| 193 return scoped_ptr<ExtensionHostDelegate>(new ShellExtensionHostDelegate); | 198 return scoped_ptr<ExtensionHostDelegate>(new ShellExtensionHostDelegate); |
| 194 } | 199 } |
| 195 | 200 |
| 196 bool ShellExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) { | 201 bool ShellExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) { |
| 197 // TODO(jamescook): We might want to tell extensions when app_shell updates. | 202 // TODO(jamescook): We might want to tell extensions when app_shell updates. |
| 198 return false; | 203 return false; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 content::BrowserContext* context) const { | 236 content::BrowserContext* context) const { |
| 232 return scoped_ptr<RuntimeAPIDelegate>(new apps::ShellRuntimeAPIDelegate()); | 237 return scoped_ptr<RuntimeAPIDelegate>(new apps::ShellRuntimeAPIDelegate()); |
| 233 } | 238 } |
| 234 | 239 |
| 235 ComponentExtensionResourceManager* | 240 ComponentExtensionResourceManager* |
| 236 ShellExtensionsBrowserClient::GetComponentExtensionResourceManager() { | 241 ShellExtensionsBrowserClient::GetComponentExtensionResourceManager() { |
| 237 return NULL; | 242 return NULL; |
| 238 } | 243 } |
| 239 | 244 |
| 240 } // namespace extensions | 245 } // namespace extensions |
| OLD | NEW |