Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2055433002: Revert of service worker: Don't control a subframe of an insecure context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 #include "chrome/common/channel_info.h" 97 #include "chrome/common/channel_info.h"
98 #include "chrome/common/chrome_constants.h" 98 #include "chrome/common/chrome_constants.h"
99 #include "chrome/common/chrome_paths.h" 99 #include "chrome/common/chrome_paths.h"
100 #include "chrome/common/chrome_switches.h" 100 #include "chrome/common/chrome_switches.h"
101 #include "chrome/common/env_vars.h" 101 #include "chrome/common/env_vars.h"
102 #include "chrome/common/features.h" 102 #include "chrome/common/features.h"
103 #include "chrome/common/logging_chrome.h" 103 #include "chrome/common/logging_chrome.h"
104 #include "chrome/common/pepper_permission_util.h" 104 #include "chrome/common/pepper_permission_util.h"
105 #include "chrome/common/pref_names.h" 105 #include "chrome/common/pref_names.h"
106 #include "chrome/common/render_messages.h" 106 #include "chrome/common/render_messages.h"
107 #include "chrome/common/secure_origin_whitelist.h"
108 #include "chrome/common/url_constants.h" 107 #include "chrome/common/url_constants.h"
109 #include "chrome/grit/generated_resources.h" 108 #include "chrome/grit/generated_resources.h"
110 #include "chrome/installer/util/google_update_settings.h" 109 #include "chrome/installer/util/google_update_settings.h"
111 #include "chromeos/chromeos_constants.h" 110 #include "chromeos/chromeos_constants.h"
112 #include "components/autofill/content/browser/content_autofill_driver_factory.h" 111 #include "components/autofill/content/browser/content_autofill_driver_factory.h"
113 #include "components/autofill/core/common/autofill_switches.h" 112 #include "components/autofill/core/common/autofill_switches.h"
114 #include "components/cdm/browser/cdm_message_filter_android.h" 113 #include "components/cdm/browser/cdm_message_filter_android.h"
115 #include "components/cloud_devices/common/cloud_devices_switches.h" 114 #include "components/cloud_devices/common/cloud_devices_switches.h"
116 #include "components/content_settings/core/browser/content_settings_utils.h" 115 #include "components/content_settings/core/browser/content_settings_utils.h"
117 #include "components/content_settings/core/browser/cookie_settings.h" 116 #include "components/content_settings/core/browser/cookie_settings.h"
(...skipping 2406 matching lines...) Expand 10 before | Expand all | Expand 10 after
2524 ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( 2523 ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem(
2525 additional_allowed_schemes); 2524 additional_allowed_schemes);
2526 additional_allowed_schemes->push_back(content::kChromeDevToolsScheme); 2525 additional_allowed_schemes->push_back(content::kChromeDevToolsScheme);
2527 additional_allowed_schemes->push_back(content::kChromeUIScheme); 2526 additional_allowed_schemes->push_back(content::kChromeUIScheme);
2528 for (size_t i = 0; i < extra_parts_.size(); ++i) { 2527 for (size_t i = 0; i < extra_parts_.size(); ++i) {
2529 extra_parts_[i]->GetAdditionalAllowedSchemesForFileSystem( 2528 extra_parts_[i]->GetAdditionalAllowedSchemesForFileSystem(
2530 additional_allowed_schemes); 2529 additional_allowed_schemes);
2531 } 2530 }
2532 } 2531 }
2533 2532
2534 void ChromeContentBrowserClient::GetSchemesBypassingSecureContextCheckWhitelist(
2535 std::set<std::string>* schemes) {
2536 return ::GetSchemesBypassingSecureContextCheckWhitelist(schemes);
2537 }
2538
2539 void ChromeContentBrowserClient::GetURLRequestAutoMountHandlers( 2533 void ChromeContentBrowserClient::GetURLRequestAutoMountHandlers(
2540 std::vector<storage::URLRequestAutoMountHandler>* handlers) { 2534 std::vector<storage::URLRequestAutoMountHandler>* handlers) {
2541 for (size_t i = 0; i < extra_parts_.size(); ++i) 2535 for (size_t i = 0; i < extra_parts_.size(); ++i)
2542 extra_parts_[i]->GetURLRequestAutoMountHandlers(handlers); 2536 extra_parts_[i]->GetURLRequestAutoMountHandlers(handlers);
2543 } 2537 }
2544 2538
2545 void ChromeContentBrowserClient::GetAdditionalFileSystemBackends( 2539 void ChromeContentBrowserClient::GetAdditionalFileSystemBackends(
2546 content::BrowserContext* browser_context, 2540 content::BrowserContext* browser_context,
2547 const base::FilePath& storage_partition_path, 2541 const base::FilePath& storage_partition_path,
2548 ScopedVector<storage::FileSystemBackend>* additional_backends) { 2542 ScopedVector<storage::FileSystemBackend>* additional_backends) {
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
2966 if (channel <= kMaxDisableEncryptionChannel) { 2960 if (channel <= kMaxDisableEncryptionChannel) {
2967 static const char* const kWebRtcDevSwitchNames[] = { 2961 static const char* const kWebRtcDevSwitchNames[] = {
2968 switches::kDisableWebRtcEncryption, 2962 switches::kDisableWebRtcEncryption,
2969 }; 2963 };
2970 to_command_line->CopySwitchesFrom(from_command_line, 2964 to_command_line->CopySwitchesFrom(from_command_line,
2971 kWebRtcDevSwitchNames, 2965 kWebRtcDevSwitchNames,
2972 arraysize(kWebRtcDevSwitchNames)); 2966 arraysize(kWebRtcDevSwitchNames));
2973 } 2967 }
2974 } 2968 }
2975 #endif // defined(ENABLE_WEBRTC) 2969 #endif // defined(ENABLE_WEBRTC)
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/extensions/service_worker_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698