OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 2745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2756 additional_allowed_schemes->push_back(content::kChromeDevToolsScheme); | 2756 additional_allowed_schemes->push_back(content::kChromeDevToolsScheme); |
2757 additional_allowed_schemes->push_back(content::kChromeUIScheme); | 2757 additional_allowed_schemes->push_back(content::kChromeUIScheme); |
2758 for (size_t i = 0; i < extra_parts_.size(); ++i) { | 2758 for (size_t i = 0; i < extra_parts_.size(); ++i) { |
2759 extra_parts_[i]->GetAdditionalAllowedSchemesForFileSystem( | 2759 extra_parts_[i]->GetAdditionalAllowedSchemesForFileSystem( |
2760 additional_allowed_schemes); | 2760 additional_allowed_schemes); |
2761 } | 2761 } |
2762 } | 2762 } |
2763 | 2763 |
2764 void ChromeContentBrowserClient::GetSchemesBypassingSecureContextCheckWhitelist( | 2764 void ChromeContentBrowserClient::GetSchemesBypassingSecureContextCheckWhitelist( |
2765 std::set<std::string>* schemes) { | 2765 std::set<std::string>* schemes) { |
2766 return ::GetSchemesBypassingSecureContextCheckWhitelist(schemes); | 2766 *schemes = ::GetSchemesBypassingSecureContextCheckWhitelist(); |
2767 } | 2767 } |
2768 | 2768 |
2769 void ChromeContentBrowserClient::GetURLRequestAutoMountHandlers( | 2769 void ChromeContentBrowserClient::GetURLRequestAutoMountHandlers( |
2770 std::vector<storage::URLRequestAutoMountHandler>* handlers) { | 2770 std::vector<storage::URLRequestAutoMountHandler>* handlers) { |
2771 for (size_t i = 0; i < extra_parts_.size(); ++i) | 2771 for (size_t i = 0; i < extra_parts_.size(); ++i) |
2772 extra_parts_[i]->GetURLRequestAutoMountHandlers(handlers); | 2772 extra_parts_[i]->GetURLRequestAutoMountHandlers(handlers); |
2773 } | 2773 } |
2774 | 2774 |
2775 ::rappor::RapporService* ChromeContentBrowserClient::GetRapporService() { | 2775 ::rappor::RapporService* ChromeContentBrowserClient::GetRapporService() { |
2776 return g_browser_process->rappor_service(); | 2776 return g_browser_process->rappor_service(); |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3346 bool ChromeContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { | 3346 bool ChromeContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { |
3347 return variations::GetVariationParamValue( | 3347 return variations::GetVariationParamValue( |
3348 "BrowserScheduler", "RedirectDOMStorageTaskRunner") == "true"; | 3348 "BrowserScheduler", "RedirectDOMStorageTaskRunner") == "true"; |
3349 } | 3349 } |
3350 | 3350 |
3351 bool ChromeContentBrowserClient:: | 3351 bool ChromeContentBrowserClient:: |
3352 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3352 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
3353 return variations::GetVariationParamValue( | 3353 return variations::GetVariationParamValue( |
3354 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3354 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
3355 } | 3355 } |
OLD | NEW |