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

Side by Side Diff: extensions/common/api/sockets/sockets_manifest_permission.h

Issue 1213623006: Extensions: Remove PermissionMessage (permission_message.h/cc) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kill_getmessages
Patch Set: fix app_shell build, rebase Created 5 years, 4 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698