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

Side by Side Diff: extensions/common/permissions/permission_message.h

Issue 410023002: Show read-only messages for non-interact non-desktop Automation extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Rebase Created 6 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_
6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ 6 #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 kAccessibilityFeaturesModify, 85 kAccessibilityFeaturesModify,
86 kAccessibilityFeaturesRead, 86 kAccessibilityFeaturesRead,
87 kBluetoothPrivate, 87 kBluetoothPrivate,
88 kIdentityEmail, 88 kIdentityEmail,
89 kExperienceSamplingPrivate, 89 kExperienceSamplingPrivate,
90 kCopresence, 90 kCopresence,
91 kTopSites, 91 kTopSites,
92 kU2fDevices, 92 kU2fDevices,
93 kVpnProvider, 93 kVpnProvider,
94 kDocumentScan, 94 kDocumentScan,
95 kHosts1ReadOnly,
96 kHosts2ReadOnly,
97 kHosts3ReadOnly,
98 kHosts4OrMoreReadOnly,
99 kHostsAllReadOnly,
95 // Last entry: Add new entries above and ensure to update the 100 // Last entry: Add new entries above and ensure to update the
96 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml. 101 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml.
97 kEnumBoundary, 102 kEnumBoundary,
98 }; 103 };
99 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, 104 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown,
100 kNone_not_greater_than_kUnknown); 105 kNone_not_greater_than_kUnknown);
101 106
102 // Creates the corresponding permission message. 107 // Creates the corresponding permission message.
103 PermissionMessage(ID id, const base::string16& message); 108 PermissionMessage(ID id, const base::string16& message);
104 PermissionMessage(ID id, 109 PermissionMessage(ID id,
(...skipping 27 matching lines...) Expand all
132 ID id_; 137 ID id_;
133 base::string16 message_; 138 base::string16 message_;
134 base::string16 details_; 139 base::string16 details_;
135 }; 140 };
136 141
137 typedef std::vector<PermissionMessage> PermissionMessages; 142 typedef std::vector<PermissionMessage> PermissionMessages;
138 143
139 } // namespace extensions 144 } // namespace extensions
140 145
141 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ 146 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698