OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 ASSERT(m_type == KeyPathType || m_type == BufferKeyAndKeyPathType); | 121 ASSERT(m_type == KeyPathType || m_type == BufferKeyAndKeyPathType); |
122 return m_idbKeyPath; | 122 return m_idbKeyPath; |
123 } | 123 } |
124 | 124 |
125 SharedBuffer* IDBAny::buffer() const | 125 SharedBuffer* IDBAny::buffer() const |
126 { | 126 { |
127 ASSERT(m_type == BufferType || m_type == BufferKeyAndKeyPathType); | 127 ASSERT(m_type == BufferType || m_type == BufferKeyAndKeyPathType); |
128 return m_buffer.get(); | 128 return m_buffer.get(); |
129 } | 129 } |
130 | 130 |
| 131 const Vector<blink::WebBlobInfo>* IDBAny::blobInfo() const |
| 132 { |
| 133 ASSERT(m_type == BufferType || m_type == BufferKeyAndKeyPathType); |
| 134 return m_blobInfo; |
| 135 } |
| 136 |
131 const String& IDBAny::string() const | 137 const String& IDBAny::string() const |
132 { | 138 { |
133 ASSERT(m_type == StringType); | 139 ASSERT(m_type == StringType); |
134 return m_string; | 140 return m_string; |
135 } | 141 } |
136 | 142 |
137 int64_t IDBAny::integer() const | 143 int64_t IDBAny::integer() const |
138 { | 144 { |
139 ASSERT(m_type == IntegerType); | 145 ASSERT(m_type == IntegerType); |
140 return m_integer; | 146 return m_integer; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 { | 181 { |
176 } | 182 } |
177 | 183 |
178 IDBAny::IDBAny(PassRefPtr<IDBObjectStore> value) | 184 IDBAny::IDBAny(PassRefPtr<IDBObjectStore> value) |
179 : m_type(IDBObjectStoreType) | 185 : m_type(IDBObjectStoreType) |
180 , m_idbObjectStore(value) | 186 , m_idbObjectStore(value) |
181 , m_integer(0) | 187 , m_integer(0) |
182 { | 188 { |
183 } | 189 } |
184 | 190 |
185 IDBAny::IDBAny(PassRefPtr<SharedBuffer> value) | 191 IDBAny::IDBAny(PassRefPtr<SharedBuffer> value, const Vector<blink::WebBlobInfo>*
blobInfo) |
186 : m_type(BufferType) | 192 : m_type(BufferType) |
187 , m_buffer(value) | 193 , m_buffer(value) |
| 194 , m_blobInfo(blobInfo) |
188 , m_integer(0) | 195 , m_integer(0) |
189 { | 196 { |
190 } | 197 } |
191 | 198 |
192 IDBAny::IDBAny(PassRefPtr<SharedBuffer> value, PassRefPtr<IDBKey> key, const IDB
KeyPath& keyPath) | 199 IDBAny::IDBAny(PassRefPtr<SharedBuffer> value, const Vector<blink::WebBlobInfo>*
blobInfo, PassRefPtr<IDBKey> key, const IDBKeyPath& keyPath) |
193 : m_type(BufferKeyAndKeyPathType) | 200 : m_type(BufferKeyAndKeyPathType) |
194 , m_idbKey(key) | 201 , m_idbKey(key) |
195 , m_idbKeyPath(keyPath) | 202 , m_idbKeyPath(keyPath) |
196 , m_buffer(value) | 203 , m_buffer(value) |
| 204 , m_blobInfo(blobInfo) |
197 , m_integer(0) | 205 , m_integer(0) |
198 { | 206 { |
199 } | 207 } |
200 | 208 |
201 IDBAny::IDBAny(PassRefPtr<IDBKey> key) | 209 IDBAny::IDBAny(PassRefPtr<IDBKey> key) |
202 : m_type(KeyType) | 210 : m_type(KeyType) |
203 , m_idbKey(key) | 211 , m_idbKey(key) |
204 , m_integer(0) | 212 , m_integer(0) |
205 { | 213 { |
206 } | 214 } |
(...skipping 17 matching lines...) Expand all Loading... |
224 , m_integer(value) | 232 , m_integer(value) |
225 { | 233 { |
226 } | 234 } |
227 | 235 |
228 void IDBAny::trace(Visitor* visitor) | 236 void IDBAny::trace(Visitor* visitor) |
229 { | 237 { |
230 visitor->trace(m_idbCursor); | 238 visitor->trace(m_idbCursor); |
231 } | 239 } |
232 | 240 |
233 } // namespace WebCore | 241 } // namespace WebCore |
OLD | NEW |