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

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

Issue 1323323002: IndexedDB: Various C++11isms and cleanup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: True, false, whatever Created 5 years, 3 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) 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 typedef HeapHashMap<int64_t, Member<IDBTransaction>> TransactionMap; 145 HeapHashMap<int64_t, Member<IDBTransaction>> m_transactions;
cmumford 2015/09/03 23:21:03 Thank you - I hate typedefs.
jsbell 2015/09/03 23:29:54 Check out the one for a function reference (?) in
146 TransactionMap m_transactions;
147 146
148 bool m_closePending; 147 bool m_closePending = false;
149 bool m_contextStopped; 148 bool m_contextStopped = false;
150 149
151 // 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
152 // database so that we can cancel them if the database closes. 151 // database so that we can cancel them if the database closes.
153 WillBeHeapVector<RefPtrWillBeMember<Event>> m_enqueuedEvents; 152 WillBeHeapVector<RefPtrWillBeMember<Event>> m_enqueuedEvents;
154 153
155 Member<IDBDatabaseCallbacks> m_databaseCallbacks; 154 Member<IDBDatabaseCallbacks> m_databaseCallbacks;
156 }; 155 };
157 156
158 } // namespace blink 157 } // namespace blink
159 158
160 #endif // IDBDatabase_h 159 #endif // IDBDatabase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698