Chromium Code Reviews| 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 CONTENT_SETTINGS_TYPE_PAYMENT_HANDLER, | |
|
please use gerrit instead
2017/06/20 13:28:09
Add a comment, please.
zino
2017/06/22 17:26:44
Done.
| |
| 71 | |
| 70 // WARNING: This enum is going to be removed soon. Do not depend on NUM_TYPES. | 72 // WARNING: This enum is going to be removed soon. Do not depend on NUM_TYPES. |
| 71 CONTENT_SETTINGS_NUM_TYPES_DO_NOT_USE, | 73 CONTENT_SETTINGS_NUM_TYPES_DO_NOT_USE, |
| 72 }; | 74 }; |
| 73 | 75 |
| 74 struct ContentSettingsTypeHash { | 76 struct ContentSettingsTypeHash { |
| 75 std::size_t operator()(ContentSettingsType type) const { | 77 std::size_t operator()(ContentSettingsType type) const { |
| 76 return static_cast<std::size_t>(type); | 78 return static_cast<std::size_t>(type); |
| 77 } | 79 } |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_ | 82 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_ |
| OLD | NEW |