| 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 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_ | 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_ |
| 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_ | 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_ |
| 7 | 7 |
| 8 #include <cstddef> | 8 #include <cstddef> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 CONTENT_SETTINGS_TYPE_BLUETOOTH_GUARD, | 44 CONTENT_SETTINGS_TYPE_BLUETOOTH_GUARD, |
| 45 CONTENT_SETTINGS_TYPE_BACKGROUND_SYNC, | 45 CONTENT_SETTINGS_TYPE_BACKGROUND_SYNC, |
| 46 CONTENT_SETTINGS_TYPE_AUTOPLAY, | 46 CONTENT_SETTINGS_TYPE_AUTOPLAY, |
| 47 // TODO(raymes): Deprecated. See crbug.com/681709. Remove after M60. | 47 // TODO(raymes): Deprecated. See crbug.com/681709. Remove after M60. |
| 48 CONTENT_SETTINGS_TYPE_PROMPT_NO_DECISION_COUNT, | 48 CONTENT_SETTINGS_TYPE_PROMPT_NO_DECISION_COUNT, |
| 49 CONTENT_SETTINGS_TYPE_IMPORTANT_SITE_INFO, | 49 CONTENT_SETTINGS_TYPE_IMPORTANT_SITE_INFO, |
| 50 CONTENT_SETTINGS_TYPE_PERMISSION_AUTOBLOCKER_DATA, | 50 CONTENT_SETTINGS_TYPE_PERMISSION_AUTOBLOCKER_DATA, |
| 51 CONTENT_SETTINGS_TYPE_SUBRESOURCE_FILTER, | 51 CONTENT_SETTINGS_TYPE_SUBRESOURCE_FILTER, |
| 52 | 52 |
| 53 // Website setting which stores metadata for the subresource filter to aid in | 53 // Website setting which stores metadata for the subresource filter to aid in |
| 54 // decisions for whether or not to show the UI. Currently only used on | 54 // decisions for whether or not to show the UI. |
| 55 // Android. | |
| 56 CONTENT_SETTINGS_TYPE_SUBRESOURCE_FILTER_DATA, | 55 CONTENT_SETTINGS_TYPE_SUBRESOURCE_FILTER_DATA, |
| 57 | 56 |
| 58 // This is special-cased in the permissions layer to always allow, and as | 57 // This is special-cased in the permissions layer to always allow, and as |
| 59 // such doesn't have associated prefs data. | 58 // such doesn't have associated prefs data. |
| 60 CONTENT_SETTINGS_TYPE_MIDI, | 59 CONTENT_SETTINGS_TYPE_MIDI, |
| 61 | 60 |
| 62 // This is only here temporarily and will be removed when we further unify | 61 // This is only here temporarily and will be removed when we further unify |
| 63 // it with notifications, see crbug.com/563297. No prefs data is stored for | 62 // it with notifications, see crbug.com/563297. No prefs data is stored for |
| 64 // this content type, we instead share values with NOTIFICATIONS. | 63 // this content type, we instead share values with NOTIFICATIONS. |
| 65 CONTENT_SETTINGS_TYPE_PUSH_MESSAGING, | 64 CONTENT_SETTINGS_TYPE_PUSH_MESSAGING, |
| 66 | 65 |
| 67 // This content setting type is for caching password protection service's | 66 // This content setting type is for caching password protection service's |
| 68 // verdicts of each origin. | 67 // verdicts of each origin. |
| 69 CONTENT_SETTINGS_TYPE_PASSWORD_PROTECTION, | 68 CONTENT_SETTINGS_TYPE_PASSWORD_PROTECTION, |
| 70 | 69 |
| 71 // WARNING: This enum is going to be removed soon. Do not depend on NUM_TYPES. | 70 // WARNING: This enum is going to be removed soon. Do not depend on NUM_TYPES. |
| 72 CONTENT_SETTINGS_NUM_TYPES_DO_NOT_USE, | 71 CONTENT_SETTINGS_NUM_TYPES_DO_NOT_USE, |
| 73 }; | 72 }; |
| 74 | 73 |
| 75 struct ContentSettingsTypeHash { | 74 struct ContentSettingsTypeHash { |
| 76 std::size_t operator()(ContentSettingsType type) const { | 75 std::size_t operator()(ContentSettingsType type) const { |
| 77 return static_cast<std::size_t>(type); | 76 return static_cast<std::size_t>(type); |
| 78 } | 77 } |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_ | 80 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_ |
| OLD | NEW |