OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 return; | 463 return; |
464 } | 464 } |
465 | 465 |
466 Document* document = toDocument(m_scriptState->getExecutionContext()); | 466 Document* document = toDocument(m_scriptState->getExecutionContext()); |
467 if (!document) | 467 if (!document) |
468 return; | 468 return; |
469 ScriptState* scriptState = m_scriptState.get(); | 469 ScriptState* scriptState = m_scriptState.get(); |
470 ScriptState::Scope scope(scriptState); | 470 ScriptState::Scope scope(scriptState); |
471 v8::Local<v8::Context> context = scriptState->context(); | 471 v8::Local<v8::Context> context = scriptState->context(); |
472 std::unique_ptr<DataEntry> dataEntry = DataEntry::create() | 472 std::unique_ptr<DataEntry> dataEntry = DataEntry::create() |
473 .setKey(m_v8Session->wrapObject(context, idbCursor->key(scriptState)
.v8Value(), indexedDBObjectGroup, false)) | 473 .setKey(m_v8Session->wrapObject(context, idbCursor->key(scriptState)
.v8Value(), indexedDBObjectGroup)) |
474 .setPrimaryKey(m_v8Session->wrapObject(context, idbCursor->primaryKe
y(scriptState).v8Value(), indexedDBObjectGroup, false)) | 474 .setPrimaryKey(m_v8Session->wrapObject(context, idbCursor->primaryKe
y(scriptState).v8Value(), indexedDBObjectGroup)) |
475 .setValue(m_v8Session->wrapObject(context, idbCursor->value(scriptSt
ate).v8Value(), indexedDBObjectGroup, false)) | 475 .setValue(m_v8Session->wrapObject(context, idbCursor->value(scriptSt
ate).v8Value(), indexedDBObjectGroup)) |
476 .build(); | 476 .build(); |
477 m_result->addItem(std::move(dataEntry)); | 477 m_result->addItem(std::move(dataEntry)); |
478 } | 478 } |
479 | 479 |
480 void end(bool hasMore) | 480 void end(bool hasMore) |
481 { | 481 { |
482 m_requestCallback->sendSuccess(std::move(m_result), hasMore); | 482 m_requestCallback->sendSuccess(std::move(m_result), hasMore); |
483 } | 483 } |
484 | 484 |
485 DEFINE_INLINE_VIRTUAL_TRACE() | 485 DEFINE_INLINE_VIRTUAL_TRACE() |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 clearObjectStore->start(idbFactory, document->getSecurityOrigin(), databaseN
ame); | 806 clearObjectStore->start(idbFactory, document->getSecurityOrigin(), databaseN
ame); |
807 } | 807 } |
808 | 808 |
809 DEFINE_TRACE(InspectorIndexedDBAgent) | 809 DEFINE_TRACE(InspectorIndexedDBAgent) |
810 { | 810 { |
811 visitor->trace(m_inspectedFrames); | 811 visitor->trace(m_inspectedFrames); |
812 InspectorBaseAgent::trace(visitor); | 812 InspectorBaseAgent::trace(visitor); |
813 } | 813 } |
814 | 814 |
815 } // namespace blink | 815 } // namespace blink |
OLD | NEW |