| 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_content_browser_client.h" | 5 #include "extensions/shell/browser/shell_content_browser_client.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 218 |
| 219 void ShellContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( | 219 void ShellContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( |
| 220 std::vector<std::string>* additional_allowed_schemes) { | 220 std::vector<std::string>* additional_allowed_schemes) { |
| 221 ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( | 221 ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( |
| 222 additional_allowed_schemes); | 222 additional_allowed_schemes); |
| 223 additional_allowed_schemes->push_back(kExtensionScheme); | 223 additional_allowed_schemes->push_back(kExtensionScheme); |
| 224 } | 224 } |
| 225 | 225 |
| 226 content::DevToolsManagerDelegate* | 226 content::DevToolsManagerDelegate* |
| 227 ShellContentBrowserClient::GetDevToolsManagerDelegate() { | 227 ShellContentBrowserClient::GetDevToolsManagerDelegate() { |
| 228 return new content::ShellDevToolsManagerDelegate(); | 228 return new content::ShellDevToolsManagerDelegate(GetBrowserContext()); |
| 229 } | 229 } |
| 230 | 230 |
| 231 ShellBrowserMainParts* ShellContentBrowserClient::CreateShellBrowserMainParts( | 231 ShellBrowserMainParts* ShellContentBrowserClient::CreateShellBrowserMainParts( |
| 232 const content::MainFunctionParams& parameters, | 232 const content::MainFunctionParams& parameters, |
| 233 ShellBrowserMainDelegate* browser_main_delegate) { | 233 ShellBrowserMainDelegate* browser_main_delegate) { |
| 234 return new ShellBrowserMainParts(parameters, browser_main_delegate); | 234 return new ShellBrowserMainParts(parameters, browser_main_delegate); |
| 235 } | 235 } |
| 236 | 236 |
| 237 void ShellContentBrowserClient::AppendRendererSwitches( | 237 void ShellContentBrowserClient::AppendRendererSwitches( |
| 238 base::CommandLine* command_line) { | 238 base::CommandLine* command_line) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 254 | 254 |
| 255 const Extension* ShellContentBrowserClient::GetExtension( | 255 const Extension* ShellContentBrowserClient::GetExtension( |
| 256 content::SiteInstance* site_instance) { | 256 content::SiteInstance* site_instance) { |
| 257 ExtensionRegistry* registry = | 257 ExtensionRegistry* registry = |
| 258 ExtensionRegistry::Get(site_instance->GetBrowserContext()); | 258 ExtensionRegistry::Get(site_instance->GetBrowserContext()); |
| 259 return registry->enabled_extensions().GetExtensionOrAppByURL( | 259 return registry->enabled_extensions().GetExtensionOrAppByURL( |
| 260 site_instance->GetSiteURL()); | 260 site_instance->GetSiteURL()); |
| 261 } | 261 } |
| 262 | 262 |
| 263 } // namespace extensions | 263 } // namespace extensions |
| OLD | NEW |