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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 return new SimpleAPIPermission(info()); | 77 return new SimpleAPIPermission(info()); |
78 } | 78 } |
79 | 79 |
80 APIPermission* Intersect(const APIPermission* rhs) const override { | 80 APIPermission* Intersect(const APIPermission* rhs) const override { |
81 CHECK_EQ(info(), rhs->info()); | 81 CHECK_EQ(info(), rhs->info()); |
82 return new SimpleAPIPermission(info()); | 82 return new SimpleAPIPermission(info()); |
83 } | 83 } |
84 | 84 |
85 void Write(IPC::Message* m) const override {} | 85 void Write(IPC::Message* m) const override {} |
86 | 86 |
87 bool Read(const IPC::Message* m, PickleIterator* iter) override { | 87 bool Read(const IPC::Message* m, base::PickleIterator* iter) override { |
88 return true; | 88 return true; |
89 } | 89 } |
90 | 90 |
91 void Log(std::string* log) const override {} | 91 void Log(std::string* log) const override {} |
92 }; | 92 }; |
93 | 93 |
94 } // namespace | 94 } // namespace |
95 | 95 |
96 namespace extensions { | 96 namespace extensions { |
97 | 97 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 return api_permission_constructor_ ? | 133 return api_permission_constructor_ ? |
134 api_permission_constructor_(this) : new SimpleAPIPermission(this); | 134 api_permission_constructor_(this) : new SimpleAPIPermission(this); |
135 } | 135 } |
136 | 136 |
137 PermissionMessage APIPermissionInfo::GetMessage_() const { | 137 PermissionMessage APIPermissionInfo::GetMessage_() const { |
138 return PermissionMessage( | 138 return PermissionMessage( |
139 message_id_, l10n_util::GetStringUTF16(l10n_message_id_)); | 139 message_id_, l10n_util::GetStringUTF16(l10n_message_id_)); |
140 } | 140 } |
141 | 141 |
142 } // namespace extensions | 142 } // namespace extensions |
OLD | NEW |