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

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

Issue 148253005: DevTools: remove references to modules/indexeddb from core/inspector (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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 | Annotate | Revision Log
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 11 matching lines...) Expand all
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "core/inspector/InspectorIndexedDBAgent.h" 32 #include "modules/indexeddb/InspectorIndexedDBAgent.h"
33 33
34 #include "bindings/v8/ExceptionState.h" 34 #include "bindings/v8/ExceptionState.h"
35 #include "bindings/v8/ExceptionStatePlaceholder.h" 35 #include "bindings/v8/ExceptionStatePlaceholder.h"
36 #include "bindings/v8/ScriptController.h" 36 #include "bindings/v8/ScriptController.h"
37 #include "core/dom/DOMStringList.h" 37 #include "core/dom/DOMStringList.h"
38 #include "core/dom/Document.h" 38 #include "core/dom/Document.h"
39 #include "core/events/Event.h" 39 #include "core/events/Event.h"
40 #include "core/events/EventListener.h" 40 #include "core/events/EventListener.h"
41 #include "core/frame/Frame.h"
41 #include "core/inspector/InjectedScript.h" 42 #include "core/inspector/InjectedScript.h"
42 #include "core/inspector/InspectorPageAgent.h" 43 #include "core/inspector/InspectorPageAgent.h"
43 #include "core/inspector/InspectorState.h" 44 #include "core/inspector/InspectorState.h"
44 #include "core/frame/Frame.h"
45 #include "modules/indexeddb/DOMWindowIndexedDatabase.h" 45 #include "modules/indexeddb/DOMWindowIndexedDatabase.h"
46 #include "modules/indexeddb/IDBCursor.h" 46 #include "modules/indexeddb/IDBCursor.h"
47 #include "modules/indexeddb/IDBCursorWithValue.h" 47 #include "modules/indexeddb/IDBCursorWithValue.h"
48 #include "modules/indexeddb/IDBDatabase.h" 48 #include "modules/indexeddb/IDBDatabase.h"
49 #include "modules/indexeddb/IDBFactory.h" 49 #include "modules/indexeddb/IDBFactory.h"
50 #include "modules/indexeddb/IDBIndex.h" 50 #include "modules/indexeddb/IDBIndex.h"
51 #include "modules/indexeddb/IDBKey.h" 51 #include "modules/indexeddb/IDBKey.h"
52 #include "modules/indexeddb/IDBKeyPath.h" 52 #include "modules/indexeddb/IDBKeyPath.h"
53 #include "modules/indexeddb/IDBKeyRange.h" 53 #include "modules/indexeddb/IDBKeyRange.h"
54 #include "modules/indexeddb/IDBMetadata.h" 54 #include "modules/indexeddb/IDBMetadata.h"
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 IDBKey::KeyArray keyArray; 343 IDBKey::KeyArray keyArray;
344 RefPtr<JSONArray> array = key->getArray("array"); 344 RefPtr<JSONArray> array = key->getArray("array");
345 for (size_t i = 0; i < array->length(); ++i) { 345 for (size_t i = 0; i < array->length(); ++i) {
346 RefPtr<JSONValue> value = array->get(i); 346 RefPtr<JSONValue> value = array->get(i);
347 RefPtr<JSONObject> object; 347 RefPtr<JSONObject> object;
348 if (!value->asObject(&object)) 348 if (!value->asObject(&object))
349 return 0; 349 return 0;
350 keyArray.append(idbKeyFromInspectorObject(object.get())); 350 keyArray.append(idbKeyFromInspectorObject(object.get()));
351 } 351 }
352 idbKey = IDBKey::createArray(keyArray); 352 idbKey = IDBKey::createArray(keyArray);
353 } else 353 } else {
354 return 0; 354 return 0;
355 }
355 356
356 return idbKey.release(); 357 return idbKey.release();
357 } 358 }
358 359
359 static PassRefPtr<IDBKeyRange> idbKeyRangeFromKeyRange(JSONObject* keyRange) 360 static PassRefPtr<IDBKeyRange> idbKeyRangeFromKeyRange(JSONObject* keyRange)
360 { 361 {
361 RefPtr<JSONObject> lower = keyRange->getObject("lower"); 362 RefPtr<JSONObject> lower = keyRange->getObject("lower");
362 RefPtr<IDBKey> idbLower = lower ? idbKeyFromInspectorObject(lower.get()) : 0 ; 363 RefPtr<IDBKey> idbLower = lower ? idbKeyFromInspectorObject(lower.get()) : 0 ;
363 if (lower && !idbLower) 364 if (lower && !idbLower)
364 return 0; 365 return 0;
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 v8::HandleScope handleScope(toIsolate(frame)); 766 v8::HandleScope handleScope(toIsolate(frame));
766 v8::Handle<v8::Context> context = document->frame()->script().mainWorldConte xt(); 767 v8::Handle<v8::Context> context = document->frame()->script().mainWorldConte xt();
767 ASSERT(!context.IsEmpty()); 768 ASSERT(!context.IsEmpty());
768 v8::Context::Scope contextScope(context); 769 v8::Context::Scope contextScope(context);
769 770
770 RefPtr<ClearObjectStore> clearObjectStore = ClearObjectStore::create(documen t, objectStoreName, requestCallback); 771 RefPtr<ClearObjectStore> clearObjectStore = ClearObjectStore::create(documen t, objectStoreName, requestCallback);
771 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName ); 772 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName );
772 } 773 }
773 774
774 } // namespace WebCore 775 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698