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 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_PARAM_TRAITS_H_ | 5 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_PARAM_TRAITS_H_ |
6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_PARAM_TRAITS_H_ | 6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_PARAM_TRAITS_H_ |
7 | 7 |
| 8 #include <string> |
| 9 |
8 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
9 #include "ipc/ipc_param_traits.h" | 11 #include "ipc/ipc_param_traits.h" |
10 | 12 |
11 namespace content { | 13 namespace content { |
12 class IndexedDBKey; | 14 class IndexedDBKey; |
13 class IndexedDBKeyPath; | 15 class IndexedDBKeyPath; |
14 class IndexedDBKeyRange; | 16 class IndexedDBKeyRange; |
15 } | 17 } |
16 | 18 |
17 namespace IPC { | 19 namespace IPC { |
(...skipping 15 matching lines...) Expand all Loading... |
33 }; | 35 }; |
34 | 36 |
35 template <> | 37 template <> |
36 struct ParamTraits<content::IndexedDBKeyPath> { | 38 struct ParamTraits<content::IndexedDBKeyPath> { |
37 typedef content::IndexedDBKeyPath param_type; | 39 typedef content::IndexedDBKeyPath param_type; |
38 static void Write(Message* m, const param_type& p); | 40 static void Write(Message* m, const param_type& p); |
39 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 41 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
40 static void Log(const param_type& p, std::string* l); | 42 static void Log(const param_type& p, std::string* l); |
41 }; | 43 }; |
42 | 44 |
43 } // namespace IPC | 45 } // namespace IPC |
44 | 46 |
45 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_PARAM_TRAITS_H_ | 47 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_PARAM_TRAITS_H_ |
OLD | NEW |