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

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

Issue 1479923002: Enumerate the return value of dispatchEvent so it is clear. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_passive_uma_add
Patch Set: Rebase Created 5 years 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 static const char objectStoreDeletedErrorMessage[]; 124 static const char objectStoreDeletedErrorMessage[];
125 static const char requestNotFinishedErrorMessage[]; 125 static const char requestNotFinishedErrorMessage[];
126 static const char sourceDeletedErrorMessage[]; 126 static const char sourceDeletedErrorMessage[];
127 static const char transactionFinishedErrorMessage[]; 127 static const char transactionFinishedErrorMessage[];
128 static const char transactionInactiveErrorMessage[]; 128 static const char transactionInactiveErrorMessage[];
129 static const char transactionReadOnlyErrorMessage[]; 129 static const char transactionReadOnlyErrorMessage[];
130 static const char databaseClosedErrorMessage[]; 130 static const char databaseClosedErrorMessage[];
131 131
132 protected: 132 protected:
133 // EventTarget 133 // EventTarget
134 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override; 134 WebInputEventResult dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) ove rride;
135 135
136 private: 136 private:
137 IDBDatabase(ExecutionContext*, PassOwnPtr<WebIDBDatabase>, IDBDatabaseCallba cks*); 137 IDBDatabase(ExecutionContext*, PassOwnPtr<WebIDBDatabase>, IDBDatabaseCallba cks*);
138 138
139 IDBObjectStore* createObjectStore(const String& name, const IDBKeyPath&, boo l autoIncrement, ExceptionState&); 139 IDBObjectStore* createObjectStore(const String& name, const IDBKeyPath&, boo l autoIncrement, ExceptionState&);
140 void closeConnection(); 140 void closeConnection();
141 141
142 IDBDatabaseMetadata m_metadata; 142 IDBDatabaseMetadata m_metadata;
143 OwnPtr<WebIDBDatabase> m_backend; 143 OwnPtr<WebIDBDatabase> m_backend;
144 Member<IDBTransaction> m_versionChangeTransaction; 144 Member<IDBTransaction> m_versionChangeTransaction;
145 HeapHashMap<int64_t, Member<IDBTransaction>> m_transactions; 145 HeapHashMap<int64_t, Member<IDBTransaction>> m_transactions;
146 146
147 bool m_closePending = false; 147 bool m_closePending = false;
148 bool m_contextStopped = false; 148 bool m_contextStopped = false;
149 149
150 // Keep track of the versionchange events waiting to be fired on this 150 // Keep track of the versionchange events waiting to be fired on this
151 // database so that we can cancel them if the database closes. 151 // database so that we can cancel them if the database closes.
152 WillBeHeapVector<RefPtrWillBeMember<Event>> m_enqueuedEvents; 152 WillBeHeapVector<RefPtrWillBeMember<Event>> m_enqueuedEvents;
153 153
154 Member<IDBDatabaseCallbacks> m_databaseCallbacks; 154 Member<IDBDatabaseCallbacks> m_databaseCallbacks;
155 }; 155 };
156 156
157 } // namespace blink 157 } // namespace blink
158 158
159 #endif // IDBDatabase_h 159 #endif // IDBDatabase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698