OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/common/extensions/extension_messages.h" | 5 #include "chrome/common/extensions/extension_messages.h" |
6 | 6 |
| 7 #include "chrome/common/extensions/extension.h" |
7 #include "chrome/common/extensions/extension_constants.h" | 8 #include "chrome/common/extensions/extension_constants.h" |
8 #include "chrome/common/extensions/manifest.h" | 9 #include "chrome/common/extensions/manifest.h" |
9 #include "content/public/common/common_param_traits.h" | 10 #include "content/public/common/common_param_traits.h" |
10 | 11 |
| 12 using extensions::Extension; |
| 13 |
11 ExtensionMsg_Loaded_Params::ExtensionMsg_Loaded_Params() | 14 ExtensionMsg_Loaded_Params::ExtensionMsg_Loaded_Params() |
12 : location(Extension::INVALID), | 15 : location(Extension::INVALID), |
13 creation_flags(Extension::NO_FLAGS){} | 16 creation_flags(Extension::NO_FLAGS){} |
14 | 17 |
15 ExtensionMsg_Loaded_Params::~ExtensionMsg_Loaded_Params() {} | 18 ExtensionMsg_Loaded_Params::~ExtensionMsg_Loaded_Params() {} |
16 | 19 |
17 ExtensionMsg_Loaded_Params::ExtensionMsg_Loaded_Params( | 20 ExtensionMsg_Loaded_Params::ExtensionMsg_Loaded_Params( |
18 const Extension* extension) | 21 const Extension* extension) |
19 : manifest(extension->manifest()->value()->DeepCopy()), | 22 : manifest(extension->manifest()->value()->DeepCopy()), |
20 location(extension->location()), | 23 location(extension->location()), |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 ReadParam(m, iter, &p->explicit_hosts) && | 160 ReadParam(m, iter, &p->explicit_hosts) && |
158 ReadParam(m, iter, &p->scriptable_hosts); | 161 ReadParam(m, iter, &p->scriptable_hosts); |
159 } | 162 } |
160 | 163 |
161 void ParamTraits<ExtensionMsg_Loaded_Params>::Log(const param_type& p, | 164 void ParamTraits<ExtensionMsg_Loaded_Params>::Log(const param_type& p, |
162 std::string* l) { | 165 std::string* l) { |
163 l->append(p.id); | 166 l->append(p.id); |
164 } | 167 } |
165 | 168 |
166 } // namespace IPC | 169 } // namespace IPC |
OLD | NEW |