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 | 131 const Vector<WebBlobInfo>* IDBAny::blobInfo() const |
132 { | 132 { |
133 ASSERT(m_type == BufferType || m_type == BufferKeyAndKeyPathType); | 133 ASSERT(m_type == BufferType || m_type == BufferKeyAndKeyPathType); |
134 return m_blobInfo; | 134 return m_blobInfo; |
135 } | 135 } |
136 | 136 |
137 const String& IDBAny::string() const | 137 const String& IDBAny::string() const |
138 { | 138 { |
139 ASSERT(m_type == StringType); | 139 ASSERT(m_type == StringType); |
140 return m_string; | 140 return m_string; |
141 } | 141 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 { | 181 { |
182 } | 182 } |
183 | 183 |
184 IDBAny::IDBAny(IDBObjectStore* value) | 184 IDBAny::IDBAny(IDBObjectStore* value) |
185 : m_type(IDBObjectStoreType) | 185 : m_type(IDBObjectStoreType) |
186 , m_idbObjectStore(value) | 186 , m_idbObjectStore(value) |
187 , m_integer(0) | 187 , m_integer(0) |
188 { | 188 { |
189 } | 189 } |
190 | 190 |
191 IDBAny::IDBAny(PassRefPtr<SharedBuffer> value, const Vector<blink::WebBlobInfo>*
blobInfo) | 191 IDBAny::IDBAny(PassRefPtr<SharedBuffer> value, const Vector<WebBlobInfo>* blobIn
fo) |
192 : m_type(BufferType) | 192 : m_type(BufferType) |
193 , m_buffer(value) | 193 , m_buffer(value) |
194 , m_blobInfo(blobInfo) | 194 , m_blobInfo(blobInfo) |
195 , m_integer(0) | 195 , m_integer(0) |
196 { | 196 { |
197 } | 197 } |
198 | 198 |
199 IDBAny::IDBAny(PassRefPtr<SharedBuffer> value, const Vector<blink::WebBlobInfo>*
blobInfo, IDBKey* key, const IDBKeyPath& keyPath) | 199 IDBAny::IDBAny(PassRefPtr<SharedBuffer> value, const Vector<WebBlobInfo>* blobIn
fo, IDBKey* key, const IDBKeyPath& keyPath) |
200 : m_type(BufferKeyAndKeyPathType) | 200 : m_type(BufferKeyAndKeyPathType) |
201 , m_idbKey(key) | 201 , m_idbKey(key) |
202 , m_idbKeyPath(keyPath) | 202 , m_idbKeyPath(keyPath) |
203 , m_buffer(value) | 203 , m_buffer(value) |
204 , m_blobInfo(blobInfo) | 204 , m_blobInfo(blobInfo) |
205 , m_integer(0) | 205 , m_integer(0) |
206 { | 206 { |
207 } | 207 } |
208 | 208 |
209 IDBAny::IDBAny(IDBKey* key) | 209 IDBAny::IDBAny(IDBKey* key) |
(...skipping 28 matching lines...) Expand all Loading... |
238 visitor->trace(m_domStringList); | 238 visitor->trace(m_domStringList); |
239 visitor->trace(m_idbCursor); | 239 visitor->trace(m_idbCursor); |
240 visitor->trace(m_idbDatabase); | 240 visitor->trace(m_idbDatabase); |
241 visitor->trace(m_idbIndex); | 241 visitor->trace(m_idbIndex); |
242 visitor->trace(m_idbObjectStore); | 242 visitor->trace(m_idbObjectStore); |
243 visitor->trace(m_idbTransaction); | 243 visitor->trace(m_idbTransaction); |
244 visitor->trace(m_idbKey); | 244 visitor->trace(m_idbKey); |
245 } | 245 } |
246 | 246 |
247 } // namespace blink | 247 } // namespace blink |
OLD | NEW |