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

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

Issue 1659003003: IPC::Message -> base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more mac fix Created 4 years, 10 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 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_MANIFEST_PERMISSION_H_ 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_H_
6 #define EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_H_ 6 #define EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 const = 0; 62 const = 0;
63 63
64 // Returns true if |rhs| is a subset of this. 64 // Returns true if |rhs| is a subset of this.
65 bool Contains(const ManifestPermission* rhs) const; 65 bool Contains(const ManifestPermission* rhs) const;
66 66
67 // Returns true if |rhs| is equal to this. 67 // Returns true if |rhs| is equal to this.
68 bool Equal(const ManifestPermission* rhs) const; 68 bool Equal(const ManifestPermission* rhs) const;
69 69
70 // IPC functions 70 // IPC functions
71 // Writes this into the given IPC message |m|. 71 // Writes this into the given IPC message |m|.
72 void Write(IPC::Message* m) const; 72 void Write(base::Pickle* m) const;
73 73
74 // Reads from the given IPC message |m|. 74 // Reads from the given IPC message |m|.
75 bool Read(const IPC::Message* m, base::PickleIterator* iter); 75 bool Read(const base::Pickle* m, base::PickleIterator* iter);
76 76
77 // Logs this permission. 77 // Logs this permission.
78 void Log(std::string* log) const; 78 void Log(std::string* log) const;
79 79
80 private: 80 private:
81 DISALLOW_COPY_AND_ASSIGN(ManifestPermission); 81 DISALLOW_COPY_AND_ASSIGN(ManifestPermission);
82 }; 82 };
83 83
84 } // namespace extensions 84 } // namespace extensions
85 85
86 #endif // EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_H_ 86 #endif // EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_H_
OLDNEW
« no previous file with comments | « extensions/common/permissions/api_permission.cc ('k') | extensions/common/permissions/manifest_permission.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698