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

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

Issue 23146016: Add support for directory access to the file system API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@simpler-write-permissions
Patch Set: Created 7 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_
6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 kSyncFileSystem, 63 kSyncFileSystem,
64 kAudio, 64 kAudio,
65 kFavicon, 65 kFavicon,
66 kMusicManagerPrivate, 66 kMusicManagerPrivate,
67 kWebConnectable, 67 kWebConnectable,
68 kActivityLogPrivate, 68 kActivityLogPrivate,
69 kBluetoothDevices, 69 kBluetoothDevices,
70 kDownloadsOpen, 70 kDownloadsOpen,
71 kNetworkingPrivate, 71 kNetworkingPrivate,
72 kDeclarativeWebRequest, 72 kDeclarativeWebRequest,
73 kFileSystemDirectory,
73 kEnumBoundary, 74 kEnumBoundary,
74 }; 75 };
75 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown, 76 COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown,
76 kNone_not_greater_than_kUnknown); 77 kNone_not_greater_than_kUnknown);
77 78
78 // Creates the corresponding permission message for a list of hosts. This is 79 // Creates the corresponding permission message for a list of hosts. This is
79 // simply a convenience method around the constructor, since the messages 80 // simply a convenience method around the constructor, since the messages
80 // change depending on what hosts are present. 81 // change depending on what hosts are present.
81 static PermissionMessage CreateFromHostList( 82 static PermissionMessage CreateFromHostList(
82 const std::set<std::string>& hosts); 83 const std::set<std::string>& hosts);
(...skipping 29 matching lines...) Expand all
112 ID id_; 113 ID id_;
113 string16 message_; 114 string16 message_;
114 string16 details_; 115 string16 details_;
115 }; 116 };
116 117
117 typedef std::vector<PermissionMessage> PermissionMessages; 118 typedef std::vector<PermissionMessage> PermissionMessages;
118 119
119 } // namespace extensions 120 } // namespace extensions
120 121
121 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_ 122 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_PERMISSION_MESSAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698