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

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

Issue 328943002: Change topSites API permission warning (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 13
14 namespace extensions { 14 namespace extensions {
15 15
16 // When prompting the user to install or approve permissions, we display 16 // When prompting the user to install or approve permissions, we display
17 // messages describing the effects of the permissions rather than listing the 17 // messages describing the effects of the permissions rather than listing the
18 // permissions themselves. Each PermissionMessage represents one of the 18 // permissions themselves. Each PermissionMessage represents one of the
19 // messages shown to the user. 19 // messages shown to the user.
20 class PermissionMessage { 20 class PermissionMessage {
21 public: 21 public:
22 // Do not reorder this enumeration. If you need to add a new enum, add it just 22 // Do not reorder this enumeration. If you need to add a new enum, add it just
23 // prior to kEnumBoundary. 23 // prior to kEnumBoundary.
24 enum ID { 24 enum ID {
25 kUnknown, 25 kUnknown,
26 kNone, 26 kNone,
27 kBookmarks, 27 kBookmarks,
28 kGeolocation, 28 kGeolocation,
29 kBrowsingHistory, 29 kBrowsingHistoryWrite,
30 kTabs, 30 kBrowsingHistoryRead,
31 kManagement, 31 kManagement,
32 kDebugger, 32 kDebugger,
33 kDesktopCapture, 33 kDesktopCapture,
34 kHid, 34 kHid,
35 kHosts1, 35 kHosts1,
36 kHosts2, 36 kHosts2,
37 kHosts3, 37 kHosts3,
38 kHosts4OrMore, 38 kHosts4OrMore,
39 kHostsAll, 39 kHostsAll,
40 kFullAccess, 40 kFullAccess,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 ID id_; 123 ID id_;
124 base::string16 message_; 124 base::string16 message_;
125 base::string16 details_; 125 base::string16 details_;
126 }; 126 };
127 127
128 typedef std::vector<PermissionMessage> PermissionMessages; 128 typedef std::vector<PermissionMessage> PermissionMessages;
129 129
130 } // namespace extensions 130 } // namespace extensions
131 131
132 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_ 132 #endif // EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698