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 "components/content_settings/core/browser/host_content_settings_map.h" | 5 #include "components/content_settings/core/browser/host_content_settings_map.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 content_type == CONTENT_SETTINGS_TYPE_MIDI_SYSEX) { | 652 content_type == CONTENT_SETTINGS_TYPE_MIDI_SYSEX) { |
653 return false; | 653 return false; |
654 } | 654 } |
655 #if defined(OS_ANDROID) || defined(OS_CHROMEOS) | 655 #if defined(OS_ANDROID) || defined(OS_CHROMEOS) |
656 if (content_type == CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER) { | 656 if (content_type == CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER) { |
657 return false; | 657 return false; |
658 } | 658 } |
659 #endif | 659 #endif |
660 if (secondary_url.SchemeIs(kChromeUIScheme) && | 660 if (secondary_url.SchemeIs(kChromeUIScheme) && |
661 content_type == CONTENT_SETTINGS_TYPE_COOKIES && | 661 content_type == CONTENT_SETTINGS_TYPE_COOKIES && |
662 primary_url.SchemeIsSecure()) { | 662 primary_url.SchemeIsCryptographic()) { |
663 return true; | 663 return true; |
664 } | 664 } |
665 #if defined(ENABLE_EXTENSIONS) | 665 #if defined(ENABLE_EXTENSIONS) |
666 if (primary_url.SchemeIs(kExtensionScheme)) { | 666 if (primary_url.SchemeIs(kExtensionScheme)) { |
667 switch (content_type) { | 667 switch (content_type) { |
668 case CONTENT_SETTINGS_TYPE_PLUGINS: | 668 case CONTENT_SETTINGS_TYPE_PLUGINS: |
669 case CONTENT_SETTINGS_TYPE_MEDIASTREAM: | 669 case CONTENT_SETTINGS_TYPE_MEDIASTREAM: |
670 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC: | 670 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC: |
671 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA: | 671 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA: |
672 return false; | 672 return false; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 } | 769 } |
770 } | 770 } |
771 | 771 |
772 if (info) { | 772 if (info) { |
773 info->source = content_settings::SETTING_SOURCE_NONE; | 773 info->source = content_settings::SETTING_SOURCE_NONE; |
774 info->primary_pattern = ContentSettingsPattern(); | 774 info->primary_pattern = ContentSettingsPattern(); |
775 info->secondary_pattern = ContentSettingsPattern(); | 775 info->secondary_pattern = ContentSettingsPattern(); |
776 } | 776 } |
777 return scoped_ptr<base::Value>(); | 777 return scoped_ptr<base::Value>(); |
778 } | 778 } |
OLD | NEW |