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

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

Issue 1021763003: Add install warning for printerProvider permission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 8 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 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 kPlatformKeys, 97 kPlatformKeys,
98 kMDns, 98 kMDns,
99 kVpnProvider, 99 kVpnProvider,
100 kHosts1ReadOnly, 100 kHosts1ReadOnly,
101 kHosts2ReadOnly, 101 kHosts2ReadOnly,
102 kHosts3ReadOnly, 102 kHosts3ReadOnly,
103 kHosts4OrMoreReadOnly, 103 kHosts4OrMoreReadOnly,
104 kHostsAllReadOnly, 104 kHostsAllReadOnly,
105 kInterceptAllKeys, 105 kInterceptAllKeys,
106 kSettingsPrivate, 106 kSettingsPrivate,
107 kPrinterProvider,
107 // Last entry: Add new entries above and ensure to update the 108 // Last entry: Add new entries above and ensure to update the
108 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml. 109 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml.
109 kEnumBoundary, 110 kEnumBoundary,
110 }; 111 };
111 static_assert(PermissionMessage::kNone > PermissionMessage::kUnknown, 112 static_assert(PermissionMessage::kNone > PermissionMessage::kUnknown,
112 "kNone should not greater than kUnknown"); 113 "kNone should not greater than kUnknown");
113 114
114 // Creates the corresponding permission message. 115 // Creates the corresponding permission message.
115 PermissionMessage(ID id, const base::string16& message); 116 PermissionMessage(ID id, const base::string16& message);
116 PermissionMessage(ID id, 117 PermissionMessage(ID id,
(...skipping 28 matching lines...) Expand all
145 base::string16 message_; 146 base::string16 message_;
146 base::string16 details_; 147 base::string16 details_;
147 }; 148 };
148 149
149 typedef std::vector<PermissionMessage> PermissionMessages; 150 typedef std::vector<PermissionMessage> PermissionMessages;
150 typedef std::vector<PermissionMessage::ID> PermissionMessageIDs; 151 typedef std::vector<PermissionMessage::ID> PermissionMessageIDs;
151 152
152 } // namespace extensions 153 } // namespace extensions
153 154
154 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ 155 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_
OLDNEW
« no previous file with comments | « extensions/common/permissions/extensions_api_permissions.cc ('k') | extensions/extensions_strings.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698