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/common/chrome_content_client.h" | 5 #include "chrome/common/chrome_content_client.h" |
6 | 6 |
7 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #endif // defined(OS_LINUX) | 9 #endif // defined(OS_LINUX) |
10 | 10 |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 schemes->insert(extensions::kExtensionScheme); | 610 schemes->insert(extensions::kExtensionScheme); |
611 schemes->insert(extensions::kExtensionResourceScheme); | 611 schemes->insert(extensions::kExtensionResourceScheme); |
612 GetSecureOriginWhitelist(origins); | 612 GetSecureOriginWhitelist(origins); |
613 } | 613 } |
614 | 614 |
615 void ChromeContentClient::AddServiceWorkerSchemes( | 615 void ChromeContentClient::AddServiceWorkerSchemes( |
616 std::set<std::string>* schemes) { | 616 std::set<std::string>* schemes) { |
617 schemes->insert(extensions::kExtensionScheme); | 617 schemes->insert(extensions::kExtensionScheme); |
618 } | 618 } |
619 | 619 |
620 void ChromeContentClient::AddIsolatedSchemes(std::set<std::string>* schemes) { | 620 bool ChromeContentClient::IsSupplementarySiteIsolationModeEnabled() { |
621 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 621 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
622 switches::kIsolateExtensions)) { | 622 switches::kIsolateExtensions); |
623 schemes->insert(extensions::kExtensionScheme); | |
624 } | |
625 } | 623 } |
OLD | NEW |