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

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

Issue 312093005: IndexedDB: Sprinkle DISALLOW_COPY_AND_ASSIGN where appropriate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace fixes Created 6 years, 6 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_TRANSACTION_COORDINATOR_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRANSACTION_COORDINATOR_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRANSACTION_COORDINATOR_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRANSACTION_COORDINATOR_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 29 matching lines...) Expand all
40 void ProcessQueuedTransactions(); 40 void ProcessQueuedTransactions();
41 bool CanStartTransaction(IndexedDBTransaction* const transaction, 41 bool CanStartTransaction(IndexedDBTransaction* const transaction,
42 const std::set<int64>& locked_scope) const; 42 const std::set<int64>& locked_scope) const;
43 43
44 // Transactions in different states are grouped below. 44 // Transactions in different states are grouped below.
45 // list_set is used to provide stable ordering; required by spec 45 // list_set is used to provide stable ordering; required by spec
46 // for the queue, convenience for diagnostics for the rest. 46 // for the queue, convenience for diagnostics for the rest.
47 typedef list_set<scoped_refptr<IndexedDBTransaction> > TransactionSet; 47 typedef list_set<scoped_refptr<IndexedDBTransaction> > TransactionSet;
48 TransactionSet queued_transactions_; 48 TransactionSet queued_transactions_;
49 TransactionSet started_transactions_; 49 TransactionSet started_transactions_;
50
51 DISALLOW_COPY_AND_ASSIGN(IndexedDBTransactionCoordinator);
50 }; 52 };
51 53
52 } // namespace content 54 } // namespace content
53 55
54 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRANSACTION_COORDINATOR_H_ 56 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRANSACTION_COORDINATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698