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

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

Issue 1012173002: Install warning message for extensions that use chrome.mdns API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code for "mdns" permission installation warning Created 5 years, 9 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
« no previous file with comments | « chrome/common/extensions/permissions/chrome_permission_message_rules.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 kHosts1ReadOnly, 97 kHosts1ReadOnly,
98 kHosts2ReadOnly, 98 kHosts2ReadOnly,
99 kHosts3ReadOnly, 99 kHosts3ReadOnly,
100 kHosts4OrMoreReadOnly, 100 kHosts4OrMoreReadOnly,
101 kHostsAllReadOnly, 101 kHostsAllReadOnly,
102 kInterceptAllKeys, 102 kInterceptAllKeys,
103 kNetworkingConfig, 103 kNetworkingConfig,
104 kPlatformKeys, 104 kPlatformKeys,
105 // Last entry: Add new entries above and ensure to update the 105 // Last entry: Add new entries above and ensure to update the
106 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml. 106 // "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml.
107 kMDns,
107 kEnumBoundary, 108 kEnumBoundary,
108 }; 109 };
109 static_assert(PermissionMessage::kNone > PermissionMessage::kUnknown, 110 static_assert(PermissionMessage::kNone > PermissionMessage::kUnknown,
110 "kNone should not greater than kUnknown"); 111 "kNone should not greater than kUnknown");
111 112
112 // Creates the corresponding permission message. 113 // Creates the corresponding permission message.
113 PermissionMessage(ID id, const base::string16& message); 114 PermissionMessage(ID id, const base::string16& message);
114 PermissionMessage(ID id, 115 PermissionMessage(ID id,
115 const base::string16& message, 116 const base::string16& message,
116 const base::string16& details); 117 const base::string16& details);
(...skipping 26 matching lines...) Expand all
143 base::string16 message_; 144 base::string16 message_;
144 base::string16 details_; 145 base::string16 details_;
145 }; 146 };
146 147
147 typedef std::vector<PermissionMessage> PermissionMessages; 148 typedef std::vector<PermissionMessage> PermissionMessages;
148 typedef std::vector<PermissionMessage::ID> PermissionMessageIDs; 149 typedef std::vector<PermissionMessage::ID> PermissionMessageIDs;
149 150
150 } // namespace extensions 151 } // namespace extensions
151 152
152 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ 153 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/permissions/chrome_permission_message_rules.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698