| 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 #include "extensions/shell/browser/shell_extensions_browser_client.h" | 5 #include "extensions/shell/browser/shell_extensions_browser_client.h" |
| 6 | 6 |
| 7 #include "content/public/browser/browser_context.h" | 7 #include "content/public/browser/browser_context.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 #include "content/public/browser/render_frame_host.h" | 9 #include "content/public/browser/render_frame_host.h" |
| 10 #include "extensions/browser/api/extensions_api_client.h" | 10 #include "extensions/browser/api/extensions_api_client.h" |
| 11 #include "extensions/browser/api/generated_api_registration.h" | 11 #include "extensions/browser/api/generated_api_registration.h" |
| 12 #include "extensions/browser/app_sorting.h" | 12 #include "extensions/browser/app_sorting.h" |
| 13 #include "extensions/browser/event_router.h" | 13 #include "extensions/browser/event_router.h" |
| 14 #include "extensions/browser/extension_function_registry.h" | 14 #include "extensions/browser/extension_function_registry.h" |
| 15 #include "extensions/browser/mojo/service_registration.h" | 15 #include "extensions/browser/mojo/service_registration.h" |
| 16 #include "extensions/browser/null_app_sorting.h" | 16 #include "extensions/browser/null_app_sorting.h" |
| 17 #include "extensions/browser/updater/null_extension_cache.h" | 17 #include "extensions/browser/updater/null_extension_cache.h" |
| 18 #include "extensions/browser/url_request_util.h" | 18 #include "extensions/browser/url_request_util.h" |
| 19 #include "extensions/shell/browser/api/generated_api_registration.h" | 19 #include "extensions/shell/browser/api/generated_api_registration.h" |
| 20 #include "extensions/shell/browser/shell_extension_host_delegate.h" | 20 #include "extensions/shell/browser/shell_extension_host_delegate.h" |
| 21 #include "extensions/shell/browser/shell_extension_system_factory.h" | 21 #include "extensions/shell/browser/shell_extension_system_factory.h" |
| 22 #include "extensions/shell/browser/shell_extension_web_contents_observer.h" |
| 22 #include "extensions/shell/browser/shell_extensions_api_client.h" | 23 #include "extensions/shell/browser/shell_extensions_api_client.h" |
| 23 #include "extensions/shell/browser/shell_runtime_api_delegate.h" | 24 #include "extensions/shell/browser/shell_runtime_api_delegate.h" |
| 24 | 25 |
| 25 #if defined(OS_CHROMEOS) | 26 #if defined(OS_CHROMEOS) |
| 26 #include "chromeos/login/login_state.h" | 27 #include "chromeos/login/login_state.h" |
| 27 #endif | 28 #endif |
| 28 | 29 |
| 29 using content::BrowserContext; | 30 using content::BrowserContext; |
| 30 using content::BrowserThread; | 31 using content::BrowserThread; |
| 31 | 32 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 bool ShellExtensionsBrowserClient::IsMinBrowserVersionSupported( | 234 bool ShellExtensionsBrowserClient::IsMinBrowserVersionSupported( |
| 234 const std::string& min_version) { | 235 const std::string& min_version) { |
| 235 return true; | 236 return true; |
| 236 } | 237 } |
| 237 | 238 |
| 238 void ShellExtensionsBrowserClient::SetAPIClientForTest( | 239 void ShellExtensionsBrowserClient::SetAPIClientForTest( |
| 239 ExtensionsAPIClient* api_client) { | 240 ExtensionsAPIClient* api_client) { |
| 240 api_client_.reset(api_client); | 241 api_client_.reset(api_client); |
| 241 } | 242 } |
| 242 | 243 |
| 244 ExtensionWebContentsObserver* |
| 245 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( |
| 246 content::WebContents* web_contents) { |
| 247 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); |
| 248 } |
| 249 |
| 243 } // namespace extensions | 250 } // namespace extensions |
| OLD | NEW |