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 #include "content/common/indexed_db/indexed_db_param_traits.h" | 5 #include "content/common/indexed_db/indexed_db_param_traits.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 #include "content/common/indexed_db/indexed_db_key.h" | 9 #include "content/common/indexed_db/indexed_db_key.h" |
10 #include "content/common/indexed_db/indexed_db_key_path.h" | 10 #include "content/common/indexed_db/indexed_db_key_path.h" |
11 #include "content/common/indexed_db/indexed_db_key_range.h" | 11 #include "content/common/indexed_db/indexed_db_key_range.h" |
12 #include "ipc/ipc_message_utils.h" | 12 #include "ipc/ipc_message_utils.h" |
13 | 13 |
14 using content::IndexedDBKey; | 14 using content::IndexedDBKey; |
15 using content::IndexedDBKeyPath; | 15 using content::IndexedDBKeyPath; |
16 using content::IndexedDBKeyRange; | 16 using content::IndexedDBKeyRange; |
17 | 17 |
18 using WebKit::WebIDBKeyPathTypeArray; | 18 using blink::WebIDBKeyPathTypeArray; |
19 using WebKit::WebIDBKeyPathTypeNull; | 19 using blink::WebIDBKeyPathTypeNull; |
20 using WebKit::WebIDBKeyPathTypeString; | 20 using blink::WebIDBKeyPathTypeString; |
21 using WebKit::WebIDBKeyType; | 21 using blink::WebIDBKeyType; |
22 using WebKit::WebIDBKeyTypeArray; | 22 using blink::WebIDBKeyTypeArray; |
23 using WebKit::WebIDBKeyTypeDate; | 23 using blink::WebIDBKeyTypeDate; |
24 using WebKit::WebIDBKeyTypeInvalid; | 24 using blink::WebIDBKeyTypeInvalid; |
25 using WebKit::WebIDBKeyTypeMin; | 25 using blink::WebIDBKeyTypeMin; |
26 using WebKit::WebIDBKeyTypeNull; | 26 using blink::WebIDBKeyTypeNull; |
27 using WebKit::WebIDBKeyTypeNumber; | 27 using blink::WebIDBKeyTypeNumber; |
28 using WebKit::WebIDBKeyTypeString; | 28 using blink::WebIDBKeyTypeString; |
29 | 29 |
30 namespace IPC { | 30 namespace IPC { |
31 | 31 |
32 void ParamTraits<IndexedDBKey>::Write(Message* m, const param_type& p) { | 32 void ParamTraits<IndexedDBKey>::Write(Message* m, const param_type& p) { |
33 WriteParam(m, static_cast<int>(p.type())); | 33 WriteParam(m, static_cast<int>(p.type())); |
34 switch (p.type()) { | 34 switch (p.type()) { |
35 case WebIDBKeyTypeArray: | 35 case WebIDBKeyTypeArray: |
36 WriteParam(m, p.array()); | 36 WriteParam(m, p.array()); |
37 return; | 37 return; |
38 case WebIDBKeyTypeString: | 38 case WebIDBKeyTypeString: |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 l->append(", upper="); | 217 l->append(", upper="); |
218 LogParam(p.upper(), l); | 218 LogParam(p.upper(), l); |
219 l->append(", lower_open="); | 219 l->append(", lower_open="); |
220 LogParam(p.lowerOpen(), l); | 220 LogParam(p.lowerOpen(), l); |
221 l->append(", upper_open="); | 221 l->append(", upper_open="); |
222 LogParam(p.upperOpen(), l); | 222 LogParam(p.upperOpen(), l); |
223 l->append(")"); | 223 l->append(")"); |
224 } | 224 } |
225 | 225 |
226 } // namespace IPC | 226 } // namespace IPC |
OLD | NEW |