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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 m_requestCallback->sendFailure("Could not advance cursor."); | 497 m_requestCallback->sendFailure("Could not advance cursor."); |
498 m_skipCount = 0; | 498 m_skipCount = 0; |
499 return; | 499 return; |
500 } | 500 } |
501 | 501 |
502 if (m_result->length() == m_pageSize) { | 502 if (m_result->length() == m_pageSize) { |
503 end(true); | 503 end(true); |
504 return; | 504 return; |
505 } | 505 } |
506 | 506 |
507 // Continue cursor before making injected script calls, otherwise transactio
n might be finished. | 507 // Continue cursor before making injected script calls, otherwise |
| 508 // transaction might be finished. |
508 TrackExceptionState exceptionState; | 509 TrackExceptionState exceptionState; |
509 idbCursor->continueFunction(nullptr, nullptr, exceptionState); | 510 idbCursor->continueFunction(nullptr, nullptr, exceptionState); |
510 if (exceptionState.hadException()) { | 511 if (exceptionState.hadException()) { |
511 m_requestCallback->sendFailure("Could not continue cursor."); | 512 m_requestCallback->sendFailure("Could not continue cursor."); |
512 return; | 513 return; |
513 } | 514 } |
514 | 515 |
515 Document* document = toDocument(m_scriptState->getExecutionContext()); | 516 Document* document = toDocument(m_scriptState->getExecutionContext()); |
516 if (!document) | 517 if (!document) |
517 return; | 518 return; |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 clearObjectStore->start(idbFactory, document->getSecurityOrigin(), | 927 clearObjectStore->start(idbFactory, document->getSecurityOrigin(), |
927 databaseName); | 928 databaseName); |
928 } | 929 } |
929 | 930 |
930 DEFINE_TRACE(InspectorIndexedDBAgent) { | 931 DEFINE_TRACE(InspectorIndexedDBAgent) { |
931 visitor->trace(m_inspectedFrames); | 932 visitor->trace(m_inspectedFrames); |
932 InspectorBaseAgent::trace(visitor); | 933 InspectorBaseAgent::trace(visitor); |
933 } | 934 } |
934 | 935 |
935 } // namespace blink | 936 } // namespace blink |
OLD | NEW |