OLD | NEW |
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 // IPC messages for extensions. | 5 // IPC messages for extensions. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 // to typedef it to avoid that. | 210 // to typedef it to avoid that. |
211 // Substitution map for l10n messages. | 211 // Substitution map for l10n messages. |
212 typedef std::map<std::string, std::string> SubstitutionMap; | 212 typedef std::map<std::string, std::string> SubstitutionMap; |
213 | 213 |
214 // Map of extensions IDs to the executing script paths. | 214 // Map of extensions IDs to the executing script paths. |
215 typedef std::map<std::string, std::set<std::string> > ExecutingScriptsMap; | 215 typedef std::map<std::string, std::set<std::string> > ExecutingScriptsMap; |
216 | 216 |
217 struct ExtensionMsg_PermissionSetStruct { | 217 struct ExtensionMsg_PermissionSetStruct { |
218 ExtensionMsg_PermissionSetStruct(); | 218 ExtensionMsg_PermissionSetStruct(); |
219 explicit ExtensionMsg_PermissionSetStruct( | 219 explicit ExtensionMsg_PermissionSetStruct( |
220 const extensions::PermissionSet* permissions); | 220 const extensions::PermissionSet& permissions); |
221 ~ExtensionMsg_PermissionSetStruct(); | 221 ~ExtensionMsg_PermissionSetStruct(); |
222 | 222 |
223 scoped_refptr<const extensions::PermissionSet> ToPermissionSet() const; | 223 scoped_refptr<const extensions::PermissionSet> ToPermissionSet() const; |
224 | 224 |
225 extensions::APIPermissionSet apis; | 225 extensions::APIPermissionSet apis; |
226 extensions::ManifestPermissionSet manifest_permissions; | 226 extensions::ManifestPermissionSet manifest_permissions; |
227 extensions::URLPatternSet explicit_hosts; | 227 extensions::URLPatternSet explicit_hosts; |
228 extensions::URLPatternSet scriptable_hosts; | 228 extensions::URLPatternSet scriptable_hosts; |
229 }; | 229 }; |
230 | 230 |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 extensions::StackTrace /* stack trace */, | 719 extensions::StackTrace /* stack trace */, |
720 int32 /* severity level */) | 720 int32 /* severity level */) |
721 | 721 |
722 // Sent by the renderer to set initialization parameters of a Browser Plugin | 722 // Sent by the renderer to set initialization parameters of a Browser Plugin |
723 // that is identified by |element_instance_id|. | 723 // that is identified by |element_instance_id|. |
724 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AttachGuest, | 724 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AttachGuest, |
725 int /* routing_id */, | 725 int /* routing_id */, |
726 int /* element_instance_id */, | 726 int /* element_instance_id */, |
727 int /* guest_instance_id */, | 727 int /* guest_instance_id */, |
728 base::DictionaryValue /* attach_params */) | 728 base::DictionaryValue /* attach_params */) |
OLD | NEW |