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

Side by Side Diff: extensions/common/extension_messages.h

Issue 1149113006: Move Pickle to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « crypto/secure_hash.h ('k') | extensions/common/permissions/api_permission.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 Value value; 297 Value value;
298 }; 298 };
299 299
300 namespace IPC { 300 namespace IPC {
301 301
302 template <> 302 template <>
303 struct ParamTraits<URLPattern> { 303 struct ParamTraits<URLPattern> {
304 typedef URLPattern param_type; 304 typedef URLPattern param_type;
305 static void Write(Message* m, const param_type& p); 305 static void Write(Message* m, const param_type& p);
306 static bool Read(const Message* m, PickleIterator* iter, param_type* p); 306 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p);
307 static void Log(const param_type& p, std::string* l); 307 static void Log(const param_type& p, std::string* l);
308 }; 308 };
309 309
310 template <> 310 template <>
311 struct ParamTraits<extensions::URLPatternSet> { 311 struct ParamTraits<extensions::URLPatternSet> {
312 typedef extensions::URLPatternSet param_type; 312 typedef extensions::URLPatternSet param_type;
313 static void Write(Message* m, const param_type& p); 313 static void Write(Message* m, const param_type& p);
314 static bool Read(const Message* m, PickleIterator* iter, param_type* p); 314 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p);
315 static void Log(const param_type& p, std::string* l); 315 static void Log(const param_type& p, std::string* l);
316 }; 316 };
317 317
318 template <> 318 template <>
319 struct ParamTraits<extensions::APIPermission::ID> { 319 struct ParamTraits<extensions::APIPermission::ID> {
320 typedef extensions::APIPermission::ID param_type; 320 typedef extensions::APIPermission::ID param_type;
321 static void Write(Message* m, const param_type& p); 321 static void Write(Message* m, const param_type& p);
322 static bool Read(const Message* m, PickleIterator* iter, param_type* p); 322 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p);
323 static void Log(const param_type& p, std::string* l); 323 static void Log(const param_type& p, std::string* l);
324 }; 324 };
325 325
326 template <> 326 template <>
327 struct ParamTraits<extensions::APIPermissionSet> { 327 struct ParamTraits<extensions::APIPermissionSet> {
328 typedef extensions::APIPermissionSet param_type; 328 typedef extensions::APIPermissionSet param_type;
329 static void Write(Message* m, const param_type& p); 329 static void Write(Message* m, const param_type& p);
330 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 330 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r);
331 static void Log(const param_type& p, std::string* l); 331 static void Log(const param_type& p, std::string* l);
332 }; 332 };
333 333
334 template <> 334 template <>
335 struct ParamTraits<extensions::ManifestPermissionSet> { 335 struct ParamTraits<extensions::ManifestPermissionSet> {
336 typedef extensions::ManifestPermissionSet param_type; 336 typedef extensions::ManifestPermissionSet param_type;
337 static void Write(Message* m, const param_type& p); 337 static void Write(Message* m, const param_type& p);
338 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 338 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r);
339 static void Log(const param_type& p, std::string* l); 339 static void Log(const param_type& p, std::string* l);
340 }; 340 };
341 341
342 template <> 342 template <>
343 struct ParamTraits<HostID> { 343 struct ParamTraits<HostID> {
344 typedef HostID param_type; 344 typedef HostID param_type;
345 static void Write(Message* m, const param_type& p); 345 static void Write(Message* m, const param_type& p);
346 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 346 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r);
347 static void Log(const param_type& p, std::string* l); 347 static void Log(const param_type& p, std::string* l);
348 }; 348 };
349 349
350 template <> 350 template <>
351 struct ParamTraits<ExtensionMsg_PermissionSetStruct> { 351 struct ParamTraits<ExtensionMsg_PermissionSetStruct> {
352 typedef ExtensionMsg_PermissionSetStruct param_type; 352 typedef ExtensionMsg_PermissionSetStruct param_type;
353 static void Write(Message* m, const param_type& p); 353 static void Write(Message* m, const param_type& p);
354 static bool Read(const Message* m, PickleIterator* iter, param_type* p); 354 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p);
355 static void Log(const param_type& p, std::string* l); 355 static void Log(const param_type& p, std::string* l);
356 }; 356 };
357 357
358 template <> 358 template <>
359 struct ParamTraits<ExtensionMsg_Loaded_Params> { 359 struct ParamTraits<ExtensionMsg_Loaded_Params> {
360 typedef ExtensionMsg_Loaded_Params param_type; 360 typedef ExtensionMsg_Loaded_Params param_type;
361 static void Write(Message* m, const param_type& p); 361 static void Write(Message* m, const param_type& p);
362 static bool Read(const Message* m, PickleIterator* iter, param_type* p); 362 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p);
363 static void Log(const param_type& p, std::string* l); 363 static void Log(const param_type& p, std::string* l);
364 }; 364 };
365 365
366 } // namespace IPC 366 } // namespace IPC
367 367
368 #endif // EXTENSIONS_COMMON_EXTENSION_MESSAGES_H_ 368 #endif // EXTENSIONS_COMMON_EXTENSION_MESSAGES_H_
369 369
370 IPC_ENUM_TRAITS_MAX_VALUE( 370 IPC_ENUM_TRAITS_MAX_VALUE(
371 ExtensionHostMsg_AutomationQuerySelector_Error::Value, 371 ExtensionHostMsg_AutomationQuerySelector_Error::Value,
372 ExtensionHostMsg_AutomationQuerySelector_Error::kNodeDestroyed) 372 ExtensionHostMsg_AutomationQuerySelector_Error::kNodeDestroyed)
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 int /* acc_obj_id */, 789 int /* acc_obj_id */,
790 base::string16 /* selector */) 790 base::string16 /* selector */)
791 791
792 // Result of a query selector request. 792 // Result of a query selector request.
793 // result_acc_obj_id is the accessibility tree ID of the result element; 0 793 // result_acc_obj_id is the accessibility tree ID of the result element; 0
794 // indicates no result. 794 // indicates no result.
795 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, 795 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result,
796 int /* request_id */, 796 int /* request_id */,
797 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, 797 ExtensionHostMsg_AutomationQuerySelector_Error /* error */,
798 int /* result_acc_obj_id */) 798 int /* result_acc_obj_id */)
OLDNEW
« no previous file with comments | « crypto/secure_hash.h ('k') | extensions/common/permissions/api_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698