OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TRAITS_H_ |
| 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TRAITS_H_ |
| 7 |
| 8 #include "ipc/ipc_message.h" |
| 9 #include "ipc/ipc_param_traits.h" |
| 10 |
| 11 namespace content { |
| 12 class ServiceWorkerClientInfo; |
| 13 } |
| 14 |
| 15 namespace IPC { |
| 16 |
| 17 template <> |
| 18 struct ParamTraits<content::ServiceWorkerClientInfo> { |
| 19 typedef content::ServiceWorkerClientInfo param_type; |
| 20 static void Write(Message* m, const param_type& p); |
| 21 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 22 static void Log(const param_type& p, std::string* l); |
| 23 }; |
| 24 |
| 25 } // namespace IPC |
| 26 |
| 27 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TRAITS_H_ |
OLD | NEW |