| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 // 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 |
| 62 // 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 |
| 63 // this content type, we instead share values with NOTIFICATIONS. | 63 // this content type, we instead share values with NOTIFICATIONS. |
| 64 CONTENT_SETTINGS_TYPE_PUSH_MESSAGING, | 64 CONTENT_SETTINGS_TYPE_PUSH_MESSAGING, |
| 65 | 65 |
| 66 // This content setting type is for caching password protection service's | 66 // This content setting type is for caching password protection service's |
| 67 // verdicts of each origin. | 67 // verdicts of each origin. |
| 68 CONTENT_SETTINGS_TYPE_PASSWORD_PROTECTION, | 68 CONTENT_SETTINGS_TYPE_PASSWORD_PROTECTION, |
| 69 | 69 |
| 70 // This content setting type is whether to allow installing a payment handler. |
| 71 CONTENT_SETTINGS_TYPE_PAYMENT_HANDLER, |
| 72 |
| 70 // WARNING: This enum is going to be removed soon. Do not depend on NUM_TYPES. | 73 // WARNING: This enum is going to be removed soon. Do not depend on NUM_TYPES. |
| 71 CONTENT_SETTINGS_NUM_TYPES_DO_NOT_USE, | 74 CONTENT_SETTINGS_NUM_TYPES_DO_NOT_USE, |
| 72 }; | 75 }; |
| 73 | 76 |
| 74 struct ContentSettingsTypeHash { | 77 struct ContentSettingsTypeHash { |
| 75 std::size_t operator()(ContentSettingsType type) const { | 78 std::size_t operator()(ContentSettingsType type) const { |
| 76 return static_cast<std::size_t>(type); | 79 return static_cast<std::size_t>(type); |
| 77 } | 80 } |
| 78 }; | 81 }; |
| 79 | 82 |
| 80 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_ | 83 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_ |
| OLD | NEW |