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

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

Issue 2840893002: IndexedDB: Remove DOMStringList special case for transaction() (Closed)
Patch Set: Remove generated files for union type from gni Created 3 years, 7 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 10 matching lines...) Expand all
21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef IDBDatabase_h 26 #ifndef IDBDatabase_h
27 #define IDBDatabase_h 27 #define IDBDatabase_h
28 28
29 #include "bindings/core/v8/ActiveScriptWrappable.h" 29 #include "bindings/core/v8/ActiveScriptWrappable.h"
30 #include "bindings/core/v8/ScriptState.h" 30 #include "bindings/core/v8/ScriptState.h"
31 #include "bindings/modules/v8/StringOrStringSequenceOrDOMStringList.h" 31 #include "bindings/modules/v8/StringOrStringSequence.h"
32 #include "core/dom/ContextLifecycleObserver.h" 32 #include "core/dom/ContextLifecycleObserver.h"
33 #include "core/dom/DOMStringList.h" 33 #include "core/dom/DOMStringList.h"
34 #include "modules/EventModules.h" 34 #include "modules/EventModules.h"
35 #include "modules/EventTargetModules.h" 35 #include "modules/EventTargetModules.h"
36 #include "modules/ModulesExport.h" 36 #include "modules/ModulesExport.h"
37 #include "modules/indexeddb/IDBDatabaseCallbacks.h" 37 #include "modules/indexeddb/IDBDatabaseCallbacks.h"
38 #include "modules/indexeddb/IDBHistograms.h" 38 #include "modules/indexeddb/IDBHistograms.h"
39 #include "modules/indexeddb/IDBMetadata.h" 39 #include "modules/indexeddb/IDBMetadata.h"
40 #include "modules/indexeddb/IDBObjectStore.h" 40 #include "modules/indexeddb/IDBObjectStore.h"
41 #include "modules/indexeddb/IDBObjectStoreParameters.h" 41 #include "modules/indexeddb/IDBObjectStoreParameters.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 const String& name() const { return metadata_.name; } 94 const String& name() const { return metadata_.name; }
95 unsigned long long version() const { return metadata_.version; } 95 unsigned long long version() const { return metadata_.version; }
96 DOMStringList* objectStoreNames() const; 96 DOMStringList* objectStoreNames() const;
97 97
98 IDBObjectStore* createObjectStore(const String& name, 98 IDBObjectStore* createObjectStore(const String& name,
99 const IDBObjectStoreParameters& options, 99 const IDBObjectStoreParameters& options,
100 ExceptionState& exception_state) { 100 ExceptionState& exception_state) {
101 return createObjectStore(name, IDBKeyPath(options.keyPath()), 101 return createObjectStore(name, IDBKeyPath(options.keyPath()),
102 options.autoIncrement(), exception_state); 102 options.autoIncrement(), exception_state);
103 } 103 }
104 IDBTransaction* transaction( 104 IDBTransaction* transaction(ScriptState*,
105 ScriptState*, 105 const StringOrStringSequence& store_names,
106 const StringOrStringSequenceOrDOMStringList& store_names, 106 const String& mode,
107 const String& mode, 107 ExceptionState&);
108 ExceptionState&);
109 void deleteObjectStore(const String& name, ExceptionState&); 108 void deleteObjectStore(const String& name, ExceptionState&);
110 void close(); 109 void close();
111 110
112 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); 111 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort);
113 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); 112 DEFINE_ATTRIBUTE_EVENT_LISTENER(close);
114 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 113 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
115 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange); 114 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange);
116 115
117 // IDBDatabaseCallbacks 116 // IDBDatabaseCallbacks
118 void OnVersionChange(int64_t old_version, int64_t new_version); 117 void OnVersionChange(int64_t old_version, int64_t new_version);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 202
204 Member<IDBDatabaseCallbacks> database_callbacks_; 203 Member<IDBDatabaseCallbacks> database_callbacks_;
205 // Maintain the isolate so that all externally allocated memory can be 204 // Maintain the isolate so that all externally allocated memory can be
206 // registered against it. 205 // registered against it.
207 v8::Isolate* isolate_; 206 v8::Isolate* isolate_;
208 }; 207 };
209 208
210 } // namespace blink 209 } // namespace blink
211 210
212 #endif // IDBDatabase_h 211 #endif // IDBDatabase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698