OLD | NEW |
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 #include "extensions/common/permissions/api_permission.h" | 5 #include "extensions/common/permissions/api_permission.h" |
6 | 6 |
7 #include "extensions/common/permissions/api_permission_set.h" | 7 #include "extensions/common/permissions/api_permission_set.h" |
8 #include "ui/base/l10n/l10n_util.h" | 8 #include "ui/base/l10n/l10n_util.h" |
9 | 9 |
10 namespace { | 10 namespace { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 APIPermission* Union(const APIPermission* rhs) const override { | 62 APIPermission* Union(const APIPermission* rhs) const override { |
63 CHECK_EQ(info(), rhs->info()); | 63 CHECK_EQ(info(), rhs->info()); |
64 return new SimpleAPIPermission(info()); | 64 return new SimpleAPIPermission(info()); |
65 } | 65 } |
66 | 66 |
67 APIPermission* Intersect(const APIPermission* rhs) const override { | 67 APIPermission* Intersect(const APIPermission* rhs) const override { |
68 CHECK_EQ(info(), rhs->info()); | 68 CHECK_EQ(info(), rhs->info()); |
69 return new SimpleAPIPermission(info()); | 69 return new SimpleAPIPermission(info()); |
70 } | 70 } |
71 | 71 |
72 void Write(IPC::Message* m) const override {} | 72 void Write(base::Pickle* m) const override {} |
73 | 73 |
74 bool Read(const IPC::Message* m, base::PickleIterator* iter) override { | 74 bool Read(const base::Pickle* m, base::PickleIterator* iter) override { |
75 return true; | 75 return true; |
76 } | 76 } |
77 | 77 |
78 void Log(std::string* log) const override {} | 78 void Log(std::string* log) const override {} |
79 }; | 79 }; |
80 | 80 |
81 } // namespace | 81 } // namespace |
82 | 82 |
83 namespace extensions { | 83 namespace extensions { |
84 | 84 |
(...skipping 24 matching lines...) Expand all Loading... |
109 } | 109 } |
110 | 110 |
111 APIPermissionInfo::~APIPermissionInfo() { } | 111 APIPermissionInfo::~APIPermissionInfo() { } |
112 | 112 |
113 APIPermission* APIPermissionInfo::CreateAPIPermission() const { | 113 APIPermission* APIPermissionInfo::CreateAPIPermission() const { |
114 return api_permission_constructor_ ? | 114 return api_permission_constructor_ ? |
115 api_permission_constructor_(this) : new SimpleAPIPermission(this); | 115 api_permission_constructor_(this) : new SimpleAPIPermission(this); |
116 } | 116 } |
117 | 117 |
118 } // namespace extensions | 118 } // namespace extensions |
OLD | NEW |