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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 return getAllKeys(script_state, range, std::numeric_limits<uint32_t>::max(), | 279 return getAllKeys(script_state, range, std::numeric_limits<uint32_t>::max(), |
280 exception_state); | 280 exception_state); |
281 } | 281 } |
282 | 282 |
283 IDBRequest* IDBIndex::getAllKeys(ScriptState* script_state, | 283 IDBRequest* IDBIndex::getAllKeys(ScriptState* script_state, |
284 const ScriptValue& range, | 284 const ScriptValue& range, |
285 uint32_t max_count, | 285 uint32_t max_count, |
286 ExceptionState& exception_state) { | 286 ExceptionState& exception_state) { |
287 IDB_TRACE("IDBIndex::getAllKeys"); | 287 IDB_TRACE("IDBIndex::getAllKeys"); |
288 return GetAllInternal(script_state, range, max_count, exception_state, | 288 return GetAllInternal(script_state, range, max_count, exception_state, |
289 true /* keyOnly */); | 289 /*key_only=*/true); |
290 } | 290 } |
291 | 291 |
292 IDBRequest* IDBIndex::getKey(ScriptState* script_state, | 292 IDBRequest* IDBIndex::getKey(ScriptState* script_state, |
293 const ScriptValue& key, | 293 const ScriptValue& key, |
294 ExceptionState& exception_state) { | 294 ExceptionState& exception_state) { |
295 IDB_TRACE("IDBIndex::getKey"); | 295 IDB_TRACE("IDBIndex::getKey"); |
296 return GetInternal(script_state, key, exception_state, true); | 296 return GetInternal(script_state, key, exception_state, true); |
297 } | 297 } |
298 | 298 |
299 IDBRequest* IDBIndex::GetInternal(ScriptState* script_state, | 299 IDBRequest* IDBIndex::GetInternal(ScriptState* script_state, |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 max_count, key_only, | 382 max_count, key_only, |
383 request->CreateWebCallbacks().release()); | 383 request->CreateWebCallbacks().release()); |
384 return request; | 384 return request; |
385 } | 385 } |
386 | 386 |
387 WebIDBDatabase* IDBIndex::BackendDB() const { | 387 WebIDBDatabase* IDBIndex::BackendDB() const { |
388 return transaction_->BackendDB(); | 388 return transaction_->BackendDB(); |
389 } | 389 } |
390 | 390 |
391 } // namespace blink | 391 } // namespace blink |
OLD | NEW |