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

Unified Diff: content/browser/indexed_db/leveldb/leveldb_transaction.h

Issue 312093005: IndexedDB: Sprinkle DISALLOW_COPY_AND_ASSIGN where appropriate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing private: 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/leveldb/leveldb_transaction.h
diff --git a/content/browser/indexed_db/leveldb/leveldb_transaction.h b/content/browser/indexed_db/leveldb/leveldb_transaction.h
index 1102651d96437e702805514470eec24e72e0587b..5f421b4a5b2b4580e4136a29b070d1575ff403c1 100644
--- a/content/browser/indexed_db/leveldb/leveldb_transaction.h
+++ b/content/browser/indexed_db/leveldb/leveldb_transaction.h
@@ -80,6 +80,8 @@ class CONTENT_EXPORT LevelDBTransaction
explicit DataIterator(LevelDBTransaction* transaction);
DataType* data_;
DataType::iterator iterator_;
+
+ DISALLOW_COPY_AND_ASSIGN(DataIterator);
};
class TransactionIterator : public LevelDBIterator {
@@ -118,6 +120,8 @@ class CONTENT_EXPORT LevelDBTransaction
};
Direction direction_;
mutable bool data_changed_;
+
+ DISALLOW_COPY_AND_ASSIGN(TransactionIterator);
};
void Set(const base::StringPiece& key, std::string* value, bool deleted);
@@ -133,6 +137,8 @@ class CONTENT_EXPORT LevelDBTransaction
DataType data_;
bool finished_;
std::set<TransactionIterator*> iterators_;
+
+ DISALLOW_COPY_AND_ASSIGN(LevelDBTransaction);
};
// Reads go straight to the database, ignoring any writes cached in
@@ -155,6 +161,8 @@ class LevelDBDirectTransaction {
LevelDBDatabase* db_;
scoped_ptr<LevelDBWriteBatch> write_batch_;
bool finished_;
+
+ DISALLOW_COPY_AND_ASSIGN(LevelDBDirectTransaction);
};
} // namespace content
« no previous file with comments | « content/browser/indexed_db/leveldb/leveldb_database.cc ('k') | content/child/indexed_db/indexed_db_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698