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

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

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 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 19 matching lines...) Expand all
30 #include "core/dom/ExceptionCode.h" 30 #include "core/dom/ExceptionCode.h"
31 #include "core/dom/ExecutionContext.h" 31 #include "core/dom/ExecutionContext.h"
32 #include "modules/indexeddb/IDBDatabase.h" 32 #include "modules/indexeddb/IDBDatabase.h"
33 #include "modules/indexeddb/IDBDatabaseCallbacks.h" 33 #include "modules/indexeddb/IDBDatabaseCallbacks.h"
34 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" 34 #include "modules/indexeddb/IDBPendingTransactionMonitor.h"
35 #include "modules/indexeddb/IDBTracing.h" 35 #include "modules/indexeddb/IDBTracing.h"
36 #include "modules/indexeddb/IDBVersionChangeEvent.h" 36 #include "modules/indexeddb/IDBVersionChangeEvent.h"
37 37
38 using blink::WebIDBDatabase; 38 using blink::WebIDBDatabase;
39 39
40 namespace WebCore { 40 namespace blink {
41 41
42 IDBOpenDBRequest* IDBOpenDBRequest::create(ScriptState* scriptState, IDBDatabase Callbacks* callbacks, int64_t transactionId, int64_t version) 42 IDBOpenDBRequest* IDBOpenDBRequest::create(ScriptState* scriptState, IDBDatabase Callbacks* callbacks, int64_t transactionId, int64_t version)
43 { 43 {
44 IDBOpenDBRequest* request = adoptRefCountedGarbageCollectedWillBeNoop(new ID BOpenDBRequest(scriptState, callbacks, transactionId, version)); 44 IDBOpenDBRequest* request = adoptRefCountedGarbageCollectedWillBeNoop(new ID BOpenDBRequest(scriptState, callbacks, transactionId, version));
45 request->suspendIfNeeded(); 45 request->suspendIfNeeded();
46 return request; 46 return request;
47 } 47 }
48 48
49 IDBOpenDBRequest::IDBOpenDBRequest(ScriptState* scriptState, IDBDatabaseCallback s* callbacks, int64_t transactionId, int64_t version) 49 IDBOpenDBRequest::IDBOpenDBRequest(ScriptState* scriptState, IDBDatabaseCallback s* callbacks, int64_t transactionId, int64_t version)
50 : IDBRequest(scriptState, IDBAny::createNull(), 0) 50 : IDBRequest(scriptState, IDBAny::createNull(), 0)
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 if (event->type() == EventTypeNames::success && resultAsAny()->type() == IDB Any::IDBDatabaseType && resultAsAny()->idbDatabase()->isClosePending()) { 171 if (event->type() == EventTypeNames::success && resultAsAny()->type() == IDB Any::IDBDatabaseType && resultAsAny()->idbDatabase()->isClosePending()) {
172 dequeueEvent(event.get()); 172 dequeueEvent(event.get());
173 setResult(0); 173 setResult(0);
174 onError(DOMError::create(AbortError, "The connection was closed.")); 174 onError(DOMError::create(AbortError, "The connection was closed."));
175 return false; 175 return false;
176 } 176 }
177 177
178 return IDBRequest::dispatchEvent(event); 178 return IDBRequest::dispatchEvent(event);
179 } 179 }
180 180
181 } // namespace WebCore 181 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBOpenDBRequest.h ('k') | Source/modules/indexeddb/IDBPendingTransactionMonitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698