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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "public/platform/WebString.h" | 32 #include "public/platform/WebString.h" |
33 #include "public/platform/WebVector.h" | 33 #include "public/platform/WebVector.h" |
34 #include "public/platform/modules/indexeddb/WebIDBTypes.h" | 34 #include "public/platform/modules/indexeddb/WebIDBTypes.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class IDBKey; | 38 class IDBKey; |
39 | 39 |
40 class WebIDBKey { | 40 class WebIDBKey { |
41 public: | 41 public: |
42 // Please use one of the factory methods. This is public only to allow WebVect
or. | 42 // Please use one of the factory methods. This is public only to allow |
| 43 // WebVector. |
43 WebIDBKey() {} | 44 WebIDBKey() {} |
44 ~WebIDBKey() { reset(); } | 45 ~WebIDBKey() { reset(); } |
45 | 46 |
46 BLINK_EXPORT static WebIDBKey createArray(const WebVector<WebIDBKey>&); | 47 BLINK_EXPORT static WebIDBKey createArray(const WebVector<WebIDBKey>&); |
47 BLINK_EXPORT static WebIDBKey createBinary(const WebData&); | 48 BLINK_EXPORT static WebIDBKey createBinary(const WebData&); |
48 BLINK_EXPORT static WebIDBKey createString(const WebString&); | 49 BLINK_EXPORT static WebIDBKey createString(const WebString&); |
49 BLINK_EXPORT static WebIDBKey createDate(double); | 50 BLINK_EXPORT static WebIDBKey createDate(double); |
50 BLINK_EXPORT static WebIDBKey createNumber(double); | 51 BLINK_EXPORT static WebIDBKey createNumber(double); |
51 BLINK_EXPORT static WebIDBKey createInvalid(); | 52 BLINK_EXPORT static WebIDBKey createInvalid(); |
52 BLINK_EXPORT static WebIDBKey createNull(); | 53 BLINK_EXPORT static WebIDBKey createNull(); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 operator IDBKey*() const { return m_private.get(); } | 90 operator IDBKey*() const { return m_private.get(); } |
90 #endif | 91 #endif |
91 | 92 |
92 private: | 93 private: |
93 WebPrivatePtr<IDBKey> m_private; | 94 WebPrivatePtr<IDBKey> m_private; |
94 }; | 95 }; |
95 | 96 |
96 } // namespace blink | 97 } // namespace blink |
97 | 98 |
98 #endif // WebIDBKey_h | 99 #endif // WebIDBKey_h |
OLD | NEW |