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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 ExtensionHostMsg_AutomationQuerySelector_Error() : value(kNone) {} | 299 ExtensionHostMsg_AutomationQuerySelector_Error() : value(kNone) {} |
300 | 300 |
301 Value value; | 301 Value value; |
302 }; | 302 }; |
303 | 303 |
304 namespace IPC { | 304 namespace IPC { |
305 | 305 |
306 template <> | 306 template <> |
307 struct ParamTraits<URLPattern> { | 307 struct ParamTraits<URLPattern> { |
308 typedef URLPattern param_type; | 308 typedef URLPattern param_type; |
| 309 static void GetSize(base::PickleSizer* s, const param_type& p); |
309 static void Write(base::Pickle* m, const param_type& p); | 310 static void Write(base::Pickle* m, const param_type& p); |
310 static bool Read(const base::Pickle* m, | 311 static bool Read(const base::Pickle* m, |
311 base::PickleIterator* iter, | 312 base::PickleIterator* iter, |
312 param_type* p); | 313 param_type* p); |
313 static void Log(const param_type& p, std::string* l); | 314 static void Log(const param_type& p, std::string* l); |
314 }; | 315 }; |
315 | 316 |
316 template <> | 317 template <> |
317 struct ParamTraits<extensions::URLPatternSet> { | 318 struct ParamTraits<extensions::URLPatternSet> { |
318 typedef extensions::URLPatternSet param_type; | 319 typedef extensions::URLPatternSet param_type; |
| 320 static void GetSize(base::PickleSizer* s, const param_type& p); |
319 static void Write(base::Pickle* m, const param_type& p); | 321 static void Write(base::Pickle* m, const param_type& p); |
320 static bool Read(const base::Pickle* m, | 322 static bool Read(const base::Pickle* m, |
321 base::PickleIterator* iter, | 323 base::PickleIterator* iter, |
322 param_type* p); | 324 param_type* p); |
323 static void Log(const param_type& p, std::string* l); | 325 static void Log(const param_type& p, std::string* l); |
324 }; | 326 }; |
325 | 327 |
326 template <> | 328 template <> |
327 struct ParamTraits<extensions::APIPermission::ID> { | 329 struct ParamTraits<extensions::APIPermission::ID> { |
328 typedef extensions::APIPermission::ID param_type; | 330 typedef extensions::APIPermission::ID param_type; |
| 331 static void GetSize(base::PickleSizer* s, const param_type& p); |
329 static void Write(base::Pickle* m, const param_type& p); | 332 static void Write(base::Pickle* m, const param_type& p); |
330 static bool Read(const base::Pickle* m, | 333 static bool Read(const base::Pickle* m, |
331 base::PickleIterator* iter, | 334 base::PickleIterator* iter, |
332 param_type* p); | 335 param_type* p); |
333 static void Log(const param_type& p, std::string* l); | 336 static void Log(const param_type& p, std::string* l); |
334 }; | 337 }; |
335 | 338 |
336 template <> | 339 template <> |
337 struct ParamTraits<extensions::APIPermissionSet> { | 340 struct ParamTraits<extensions::APIPermissionSet> { |
338 typedef extensions::APIPermissionSet param_type; | 341 typedef extensions::APIPermissionSet param_type; |
| 342 static void GetSize(base::PickleSizer* s, const param_type& p); |
339 static void Write(base::Pickle* m, const param_type& p); | 343 static void Write(base::Pickle* m, const param_type& p); |
340 static bool Read(const base::Pickle* m, | 344 static bool Read(const base::Pickle* m, |
341 base::PickleIterator* iter, | 345 base::PickleIterator* iter, |
342 param_type* r); | 346 param_type* r); |
343 static void Log(const param_type& p, std::string* l); | 347 static void Log(const param_type& p, std::string* l); |
344 }; | 348 }; |
345 | 349 |
346 template <> | 350 template <> |
347 struct ParamTraits<extensions::ManifestPermissionSet> { | 351 struct ParamTraits<extensions::ManifestPermissionSet> { |
348 typedef extensions::ManifestPermissionSet param_type; | 352 typedef extensions::ManifestPermissionSet param_type; |
| 353 static void GetSize(base::PickleSizer* s, const param_type& p); |
349 static void Write(base::Pickle* m, const param_type& p); | 354 static void Write(base::Pickle* m, const param_type& p); |
350 static bool Read(const base::Pickle* m, | 355 static bool Read(const base::Pickle* m, |
351 base::PickleIterator* iter, | 356 base::PickleIterator* iter, |
352 param_type* r); | 357 param_type* r); |
353 static void Log(const param_type& p, std::string* l); | 358 static void Log(const param_type& p, std::string* l); |
354 }; | 359 }; |
355 | 360 |
356 template <> | 361 template <> |
357 struct ParamTraits<HostID> { | 362 struct ParamTraits<HostID> { |
358 typedef HostID param_type; | 363 typedef HostID param_type; |
| 364 static void GetSize(base::PickleSizer* s, const param_type& p); |
359 static void Write(base::Pickle* m, const param_type& p); | 365 static void Write(base::Pickle* m, const param_type& p); |
360 static bool Read(const base::Pickle* m, | 366 static bool Read(const base::Pickle* m, |
361 base::PickleIterator* iter, | 367 base::PickleIterator* iter, |
362 param_type* r); | 368 param_type* r); |
363 static void Log(const param_type& p, std::string* l); | 369 static void Log(const param_type& p, std::string* l); |
364 }; | 370 }; |
365 | 371 |
366 template <> | 372 template <> |
367 struct ParamTraits<ExtensionMsg_PermissionSetStruct> { | 373 struct ParamTraits<ExtensionMsg_PermissionSetStruct> { |
368 typedef ExtensionMsg_PermissionSetStruct param_type; | 374 typedef ExtensionMsg_PermissionSetStruct param_type; |
| 375 static void GetSize(base::PickleSizer* s, const param_type& p); |
369 static void Write(base::Pickle* m, const param_type& p); | 376 static void Write(base::Pickle* m, const param_type& p); |
370 static bool Read(const base::Pickle* m, | 377 static bool Read(const base::Pickle* m, |
371 base::PickleIterator* iter, | 378 base::PickleIterator* iter, |
372 param_type* p); | 379 param_type* p); |
373 static void Log(const param_type& p, std::string* l); | 380 static void Log(const param_type& p, std::string* l); |
374 }; | 381 }; |
375 | 382 |
376 template <> | 383 template <> |
377 struct ParamTraits<ExtensionMsg_Loaded_Params> { | 384 struct ParamTraits<ExtensionMsg_Loaded_Params> { |
378 typedef ExtensionMsg_Loaded_Params param_type; | 385 typedef ExtensionMsg_Loaded_Params param_type; |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 int /* acc_obj_id */, | 831 int /* acc_obj_id */, |
825 base::string16 /* selector */) | 832 base::string16 /* selector */) |
826 | 833 |
827 // Result of a query selector request. | 834 // Result of a query selector request. |
828 // result_acc_obj_id is the accessibility tree ID of the result element; 0 | 835 // result_acc_obj_id is the accessibility tree ID of the result element; 0 |
829 // indicates no result. | 836 // indicates no result. |
830 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, | 837 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, |
831 int /* request_id */, | 838 int /* request_id */, |
832 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, | 839 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, |
833 int /* result_acc_obj_id */) | 840 int /* result_acc_obj_id */) |
OLD | NEW |