OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_API_SOCKETS_SOCKETS_MANIFEST_PERMISSION_H_ | 5 #ifndef EXTENSIONS_COMMON_API_SOCKETS_SOCKETS_MANIFEST_PERMISSION_H_ |
6 #define EXTENSIONS_COMMON_API_SOCKETS_SOCKETS_MANIFEST_PERMISSION_H_ | 6 #define EXTENSIONS_COMMON_API_SOCKETS_SOCKETS_MANIFEST_PERMISSION_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 scoped_ptr<base::Value> ToValue() const override; | 48 scoped_ptr<base::Value> ToValue() const override; |
49 ManifestPermission* Diff(const ManifestPermission* rhs) const override; | 49 ManifestPermission* Diff(const ManifestPermission* rhs) const override; |
50 ManifestPermission* Union(const ManifestPermission* rhs) const override; | 50 ManifestPermission* Union(const ManifestPermission* rhs) const override; |
51 ManifestPermission* Intersect(const ManifestPermission* rhs) const override; | 51 ManifestPermission* Intersect(const ManifestPermission* rhs) const override; |
52 | 52 |
53 const SocketPermissionEntrySet& entries() const { return permissions_; } | 53 const SocketPermissionEntrySet& entries() const { return permissions_; } |
54 | 54 |
55 // Adds the permissions from |sockets| into the permission lists |ids| and | 55 // Adds the permissions from |sockets| into the permission lists |ids| and |
56 // |messages|. If either is NULL, that list is ignored. | 56 // |messages|. If either is NULL, that list is ignored. |
57 static void AddSocketHostPermissions(const SocketPermissionEntrySet& sockets, | 57 static void AddSocketHostPermissions(const SocketPermissionEntrySet& sockets, |
58 PermissionIDSet* ids, | 58 PermissionIDSet* ids); |
59 PermissionMessages* messages); | |
60 | 59 |
61 SocketPermissionEntrySet permissions_; | 60 SocketPermissionEntrySet permissions_; |
62 }; | 61 }; |
63 | 62 |
64 } // namespace extensions | 63 } // namespace extensions |
65 | 64 |
66 #endif // EXTENSIONS_COMMON_API_SOCKETS_SOCKETS_MANIFEST_PERMISSION_H_ | 65 #endif // EXTENSIONS_COMMON_API_SOCKETS_SOCKETS_MANIFEST_PERMISSION_H_ |
OLD | NEW |