Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(685)

Side by Side Diff: Source/modules/indexeddb/InspectorIndexedDBAgent.cpp

Issue 464353002: Cleanup blink:: prefix usage in Source/core/modules/[battery/*.cpp to indexeddb/*.cpp] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 RefPtr<OpenCursorCallback> openCursorCallback = OpenCursorCallback::crea te(scriptState(), m_requestCallback, m_skipCount, m_pageSize); 505 RefPtr<OpenCursorCallback> openCursorCallback = OpenCursorCallback::crea te(scriptState(), m_requestCallback, m_skipCount, m_pageSize);
506 506
507 IDBRequest* idbRequest; 507 IDBRequest* idbRequest;
508 if (!m_indexName.isEmpty()) { 508 if (!m_indexName.isEmpty()) {
509 IDBIndex* idbIndex = indexForObjectStore(idbObjectStore, m_indexName ); 509 IDBIndex* idbIndex = indexForObjectStore(idbObjectStore, m_indexName );
510 if (!idbIndex) { 510 if (!idbIndex) {
511 m_requestCallback->sendFailure("Could not get index"); 511 m_requestCallback->sendFailure("Could not get index");
512 return; 512 return;
513 } 513 }
514 514
515 idbRequest = idbIndex->openCursor(scriptState(), m_idbKeyRange.get() , blink::WebIDBCursorDirectionNext); 515 idbRequest = idbIndex->openCursor(scriptState(), m_idbKeyRange.get() , WebIDBCursorDirectionNext);
516 } else { 516 } else {
517 idbRequest = idbObjectStore->openCursor(scriptState(), m_idbKeyRange .get(), blink::WebIDBCursorDirectionNext); 517 idbRequest = idbObjectStore->openCursor(scriptState(), m_idbKeyRange .get(), WebIDBCursorDirectionNext);
518 } 518 }
519 idbRequest->addEventListener(EventTypeNames::success, openCursorCallback , false); 519 idbRequest->addEventListener(EventTypeNames::success, openCursorCallback , false);
520 } 520 }
521 521
522 virtual RequestCallback* requestCallback() OVERRIDE { return m_requestCallba ck.get(); } 522 virtual RequestCallback* requestCallback() OVERRIDE { return m_requestCallba ck.get(); }
523 DataLoader(ScriptState* scriptState, PassRefPtr<RequestDataCallback> request Callback, const String& objectStoreName, const String& indexName, IDBKeyRange* i dbKeyRange, int skipCount, unsigned pageSize) 523 DataLoader(ScriptState* scriptState, PassRefPtr<RequestDataCallback> request Callback, const String& objectStoreName, const String& indexName, IDBKeyRange* i dbKeyRange, int skipCount, unsigned pageSize)
524 : ExecutableWithDatabase(scriptState) 524 : ExecutableWithDatabase(scriptState)
525 , m_requestCallback(requestCallback) 525 , m_requestCallback(requestCallback)
526 , m_objectStoreName(objectStoreName) 526 , m_objectStoreName(objectStoreName)
527 , m_indexName(indexName) 527 , m_indexName(indexName)
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName ); 775 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName );
776 } 776 }
777 777
778 void InspectorIndexedDBAgent::trace(Visitor* visitor) 778 void InspectorIndexedDBAgent::trace(Visitor* visitor)
779 { 779 {
780 visitor->trace(m_page); 780 visitor->trace(m_page);
781 InspectorBaseAgent::trace(visitor); 781 InspectorBaseAgent::trace(visitor);
782 } 782 }
783 783
784 } // namespace blink 784 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBVersionChangeEvent.cpp ('k') | Source/modules/indexeddb/WebIDBDatabaseCallbacksImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698