Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: components/content_settings/core/common/content_settings_types.h

Issue 2795053002: [subresource_filter] Implement the "Smart" UI on Android (Closed)
Patch Set: minor tweaks Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 CONTENT_SETTINGS_TYPE_USB_CHOOSER_DATA, 43 CONTENT_SETTINGS_TYPE_USB_CHOOSER_DATA,
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
54 // decisions for whether or not to show the UI. Currently only used on
55 // Android.
56 CONTENT_SETTINGS_TYPE_SUBRESOURCE_FILTER_DATA,
57
53 // This is special-cased in the permissions layer to always allow, and as 58 // This is special-cased in the permissions layer to always allow, and as
54 // such doesn't have associated prefs data. 59 // such doesn't have associated prefs data.
55 CONTENT_SETTINGS_TYPE_MIDI, 60 CONTENT_SETTINGS_TYPE_MIDI,
56 61
57 // This is only here temporarily and will be removed when we further unify 62 // This is only here temporarily and will be removed when we further unify
58 // it with notifications, see crbug.com/563297. No prefs data is stored for 63 // it with notifications, see crbug.com/563297. No prefs data is stored for
59 // this content type, we instead share values with NOTIFICATIONS. 64 // this content type, we instead share values with NOTIFICATIONS.
60 CONTENT_SETTINGS_TYPE_PUSH_MESSAGING, 65 CONTENT_SETTINGS_TYPE_PUSH_MESSAGING,
61 66
62 // This content setting type is for caching password protection service's 67 // This content setting type is for caching password protection service's
63 // verdicts of each origin. 68 // verdicts of each origin.
64 CONTENT_SETTINGS_TYPE_PASSWORD_PROTECTION, 69 CONTENT_SETTINGS_TYPE_PASSWORD_PROTECTION,
65 70
66 // WARNING: This enum is going to be removed soon. Do not depend on NUM_TYPES. 71 // WARNING: This enum is going to be removed soon. Do not depend on NUM_TYPES.
67 CONTENT_SETTINGS_NUM_TYPES_DO_NOT_USE, 72 CONTENT_SETTINGS_NUM_TYPES_DO_NOT_USE,
68 }; 73 };
69 74
70 struct ContentSettingsTypeHash { 75 struct ContentSettingsTypeHash {
71 std::size_t operator()(ContentSettingsType type) const { 76 std::size_t operator()(ContentSettingsType type) const {
72 return static_cast<std::size_t>(type); 77 return static_cast<std::size_t>(type);
73 } 78 }
74 }; 79 };
75 80
76 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_ 81 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698