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

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

Issue 2535713004: extensions: Cleanup class/struct fwd declarations (Closed)
Patch Set: Created 4 years 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_API_PERMISSION_H_ 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_
6 #define EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ 6 #define EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/pickle.h" 14 #include "base/pickle.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 16
17 namespace IPC {
18 class Message;
19 }
20
21 namespace extensions { 17 namespace extensions {
22 18
23 class PermissionIDSet; 19 class PermissionIDSet;
24 class APIPermissionInfo; 20 class APIPermissionInfo;
25 class ChromeAPIPermissions; 21 class ChromeAPIPermissions;
26 22
27 // APIPermission is for handling some complex permissions. Please refer to 23 // APIPermission is for handling some complex permissions. Please refer to
28 // extensions::SocketPermission as an example. 24 // extensions::SocketPermission as an example.
29 // There is one instance per permission per loaded extension. 25 // There is one instance per permission per loaded extension.
30 class APIPermission { 26 class APIPermission {
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 430
435 const APIPermission::ID id_; 431 const APIPermission::ID id_;
436 const char* const name_; 432 const char* const name_;
437 const int flags_; 433 const int flags_;
438 const APIPermissionConstructor api_permission_constructor_; 434 const APIPermissionConstructor api_permission_constructor_;
439 }; 435 };
440 436
441 } // namespace extensions 437 } // namespace extensions
442 438
443 #endif // EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ 439 #endif // EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_
OLDNEW
« no previous file with comments | « extensions/common/manifest_handlers/externally_connectable.h ('k') | extensions/common/permissions/api_permission_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698