OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 12 matching lines...) Expand all Loading... |
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 #include "config.h" | 28 #include "config.h" |
29 #include "public/platform/WebIDBKey.h" | 29 #include "public/platform/WebIDBKey.h" |
30 | 30 |
31 #include "modules/indexeddb/IDBKey.h" | 31 #include "modules/indexeddb/IDBKey.h" |
32 | 32 |
33 using namespace blink; | |
34 | |
35 namespace blink { | 33 namespace blink { |
36 | 34 |
37 WebIDBKey WebIDBKey::createArray(const WebVector<WebIDBKey>& array) | 35 WebIDBKey WebIDBKey::createArray(const WebVector<WebIDBKey>& array) |
38 { | 36 { |
39 WebIDBKey key; | 37 WebIDBKey key; |
40 key.assignArray(array); | 38 key.assignArray(array); |
41 return key; | 39 return key; |
42 } | 40 } |
43 | 41 |
44 WebIDBKey WebIDBKey::createBinary(const WebData& binary) | 42 WebIDBKey WebIDBKey::createBinary(const WebData& binary) |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 m_private = value; | 244 m_private = value; |
247 return *this; | 245 return *this; |
248 } | 246 } |
249 | 247 |
250 WebIDBKey::operator IDBKey*() const | 248 WebIDBKey::operator IDBKey*() const |
251 { | 249 { |
252 return m_private.get(); | 250 return m_private.get(); |
253 } | 251 } |
254 | 252 |
255 } // namespace blink | 253 } // namespace blink |
OLD | NEW |