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

Side by Side Diff: content/browser/indexed_db/indexed_db_database.h

Issue 475063004: IndexedDB + Coding Style: re-order enums/typedefs/... to match guide (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased after r291485 Created 6 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 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 scoped_ptr<IndexedDBKeyRange> key_range, 217 scoped_ptr<IndexedDBKeyRange> key_range,
218 scoped_refptr<IndexedDBCallbacks> callbacks, 218 scoped_refptr<IndexedDBCallbacks> callbacks,
219 IndexedDBTransaction* transaction); 219 IndexedDBTransaction* transaction);
220 void ClearOperation(int64 object_store_id, 220 void ClearOperation(int64 object_store_id,
221 scoped_refptr<IndexedDBCallbacks> callbacks, 221 scoped_refptr<IndexedDBCallbacks> callbacks,
222 IndexedDBTransaction* transaction); 222 IndexedDBTransaction* transaction);
223 223
224 private: 224 private:
225 friend class base::RefCounted<IndexedDBDatabase>; 225 friend class base::RefCounted<IndexedDBDatabase>;
226 226
227 class PendingDeleteCall;
228 class PendingSuccessCall;
229 class PendingUpgradeCall;
230
231 typedef std::map<int64, IndexedDBTransaction*> TransactionMap;
232 typedef std::list<IndexedDBPendingConnection> PendingOpenCallList;
233 typedef std::list<PendingDeleteCall*> PendingDeleteCallList;
234 typedef list_set<IndexedDBConnection*> ConnectionSet;
235
227 IndexedDBDatabase(const base::string16& name, 236 IndexedDBDatabase(const base::string16& name,
228 IndexedDBBackingStore* backing_store, 237 IndexedDBBackingStore* backing_store,
229 IndexedDBFactory* factory, 238 IndexedDBFactory* factory,
230 const Identifier& unique_identifier); 239 const Identifier& unique_identifier);
231 ~IndexedDBDatabase(); 240 ~IndexedDBDatabase();
232 241
233 bool IsOpenConnectionBlocked() const; 242 bool IsOpenConnectionBlocked() const;
234 leveldb::Status OpenInternal(); 243 leveldb::Status OpenInternal();
235 void RunVersionChangeTransaction(scoped_refptr<IndexedDBCallbacks> callbacks, 244 void RunVersionChangeTransaction(scoped_refptr<IndexedDBCallbacks> callbacks,
236 scoped_ptr<IndexedDBConnection> connection, 245 scoped_ptr<IndexedDBConnection> connection,
(...skipping 24 matching lines...) Expand all
261 int64 index_id) const; 270 int64 index_id) const;
262 271
263 scoped_refptr<IndexedDBBackingStore> backing_store_; 272 scoped_refptr<IndexedDBBackingStore> backing_store_;
264 IndexedDBDatabaseMetadata metadata_; 273 IndexedDBDatabaseMetadata metadata_;
265 274
266 const Identifier identifier_; 275 const Identifier identifier_;
267 scoped_refptr<IndexedDBFactory> factory_; 276 scoped_refptr<IndexedDBFactory> factory_;
268 277
269 IndexedDBTransactionCoordinator transaction_coordinator_; 278 IndexedDBTransactionCoordinator transaction_coordinator_;
270 279
271 typedef std::map<int64, IndexedDBTransaction*> TransactionMap;
272 TransactionMap transactions_; 280 TransactionMap transactions_;
273
274 typedef std::list<IndexedDBPendingConnection> PendingOpenCallList;
275 PendingOpenCallList pending_open_calls_; 281 PendingOpenCallList pending_open_calls_;
276
277 class PendingUpgradeCall;
278 scoped_ptr<PendingUpgradeCall> pending_run_version_change_transaction_call_; 282 scoped_ptr<PendingUpgradeCall> pending_run_version_change_transaction_call_;
279 class PendingSuccessCall;
280 scoped_ptr<PendingSuccessCall> pending_second_half_open_; 283 scoped_ptr<PendingSuccessCall> pending_second_half_open_;
281
282 class PendingDeleteCall;
283 typedef std::list<PendingDeleteCall*> PendingDeleteCallList;
284 PendingDeleteCallList pending_delete_calls_; 284 PendingDeleteCallList pending_delete_calls_;
285 285
286 typedef list_set<IndexedDBConnection*> ConnectionSet;
287 ConnectionSet connections_; 286 ConnectionSet connections_;
288 287
289 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase); 288 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase);
290 }; 289 };
291 290
292 } // namespace content 291 } // namespace content
293 292
294 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 293 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_context_impl.h ('k') | content/browser/indexed_db/indexed_db_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698