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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp

Issue 1364823002: IndexedDB: Replace use of DOMError with DOMException (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "modules/indexeddb/IDBDatabase.h" 27 #include "modules/indexeddb/IDBDatabase.h"
28 28
29 #include "bindings/core/v8/ExceptionState.h" 29 #include "bindings/core/v8/ExceptionState.h"
30 #include "bindings/core/v8/ExceptionStatePlaceholder.h" 30 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
31 #include "bindings/core/v8/Nullable.h" 31 #include "bindings/core/v8/Nullable.h"
32 #include "bindings/core/v8/SerializedScriptValue.h" 32 #include "bindings/core/v8/SerializedScriptValue.h"
33 #include "bindings/modules/v8/V8BindingForModules.h" 33 #include "bindings/modules/v8/V8BindingForModules.h"
34 #include "core/dom/ExceptionCode.h"
philipj_slow 2015/11/06 08:42:37 Is this new include really needed? Seems like it s
jsbell 2015/11/06 18:42:34 This is for the use of the ExceptionCode enum e.g.
34 #include "core/dom/ExecutionContext.h" 35 #include "core/dom/ExecutionContext.h"
35 #include "core/events/EventQueue.h" 36 #include "core/events/EventQueue.h"
36 #include "core/inspector/ScriptCallStack.h" 37 #include "core/inspector/ScriptCallStack.h"
37 #include "modules/indexeddb/IDBAny.h" 38 #include "modules/indexeddb/IDBAny.h"
38 #include "modules/indexeddb/IDBEventDispatcher.h" 39 #include "modules/indexeddb/IDBEventDispatcher.h"
39 #include "modules/indexeddb/IDBHistograms.h" 40 #include "modules/indexeddb/IDBHistograms.h"
40 #include "modules/indexeddb/IDBIndex.h" 41 #include "modules/indexeddb/IDBIndex.h"
41 #include "modules/indexeddb/IDBKeyPath.h" 42 #include "modules/indexeddb/IDBKeyPath.h"
42 #include "modules/indexeddb/IDBTracing.h" 43 #include "modules/indexeddb/IDBTracing.h"
43 #include "modules/indexeddb/IDBVersionChangeEvent.h" 44 #include "modules/indexeddb/IDBVersionChangeEvent.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 143
143 if (transaction->isVersionChange()) { 144 if (transaction->isVersionChange()) {
144 ASSERT(m_versionChangeTransaction == transaction); 145 ASSERT(m_versionChangeTransaction == transaction);
145 m_versionChangeTransaction = nullptr; 146 m_versionChangeTransaction = nullptr;
146 } 147 }
147 148
148 if (m_closePending && m_transactions.isEmpty()) 149 if (m_closePending && m_transactions.isEmpty())
149 closeConnection(); 150 closeConnection();
150 } 151 }
151 152
152 void IDBDatabase::onAbort(int64_t transactionId, DOMError* error) 153 void IDBDatabase::onAbort(int64_t transactionId, DOMException* error)
153 { 154 {
154 ASSERT(m_transactions.contains(transactionId)); 155 ASSERT(m_transactions.contains(transactionId));
155 m_transactions.get(transactionId)->onAbort(error); 156 m_transactions.get(transactionId)->onAbort(error);
156 } 157 }
157 158
158 void IDBDatabase::onComplete(int64_t transactionId) 159 void IDBDatabase::onComplete(int64_t transactionId)
159 { 160 {
160 ASSERT(m_transactions.contains(transactionId)); 161 ASSERT(m_transactions.contains(transactionId));
161 m_transactions.get(transactionId)->onComplete(); 162 m_transactions.get(transactionId)->onComplete();
162 } 163 }
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 { 449 {
449 return EventTargetNames::IDBDatabase; 450 return EventTargetNames::IDBDatabase;
450 } 451 }
451 452
452 ExecutionContext* IDBDatabase::executionContext() const 453 ExecutionContext* IDBDatabase::executionContext() const
453 { 454 {
454 return ActiveDOMObject::executionContext(); 455 return ActiveDOMObject::executionContext();
455 } 456 }
456 457
457 } // namespace blink 458 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698