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

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

Issue 23506021: Require confirmation for writable directory access. (Closed) Base URL: http://git.chromium.org/chromium/src.git@directory-permission-hack
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_API_PERMISSION_SET_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_SET_H_
6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_SET_H_ 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_SET_H_
7 7
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // next permission if invalid data is detected. If |error| is not NULL, it 155 // next permission if invalid data is detected. If |error| is not NULL, it
156 // will be set to an error message and false is returned when an invalid 156 // will be set to an error message and false is returned when an invalid
157 // permission is found. 157 // permission is found.
158 static bool ParseFromJSON( 158 static bool ParseFromJSON(
159 const base::ListValue* permissions, 159 const base::ListValue* permissions,
160 ParseSource source, 160 ParseSource source,
161 APIPermissionSet* api_permissions, 161 APIPermissionSet* api_permissions,
162 string16* error, 162 string16* error,
163 std::vector<std::string>* unhandled_permissions); 163 std::vector<std::string>* unhandled_permissions);
164 164
165 void AddImpliedPermissions();
166
165 private: 167 private:
166 APIPermissionMap map_; 168 APIPermissionMap map_;
167 }; 169 };
168 170
169 } // namespace extensions 171 } // namespace extensions
170 172
171 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_SET_H_ 173 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_API_PERMISSION_SET_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/permissions/api_permission.h ('k') | chrome/common/extensions/permissions/api_permission_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698