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

Side by Side Diff: content/browser/indexed_db/indexed_db_connection.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_CONNECTION_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONNECTION_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONNECTION_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONNECTION_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/browser/indexed_db/indexed_db_database.h" 9 #include "content/browser/indexed_db/indexed_db_database.h"
10 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" 10 #include "content/browser/indexed_db/indexed_db_database_callbacks.h"
(...skipping 16 matching lines...) Expand all
27 IndexedDBDatabase* database() { return database_; } 27 IndexedDBDatabase* database() { return database_; }
28 IndexedDBDatabaseCallbacks* callbacks() { return callbacks_; } 28 IndexedDBDatabaseCallbacks* callbacks() { return callbacks_; }
29 29
30 private: 30 private:
31 // NULL in some unit tests, and after the connection is closed. 31 // NULL in some unit tests, and after the connection is closed.
32 scoped_refptr<IndexedDBDatabase> database_; 32 scoped_refptr<IndexedDBDatabase> database_;
33 33
34 // The callbacks_ member is cleared when the connection is closed. 34 // The callbacks_ member is cleared when the connection is closed.
35 // May be NULL in unit tests. 35 // May be NULL in unit tests.
36 scoped_refptr<IndexedDBDatabaseCallbacks> callbacks_; 36 scoped_refptr<IndexedDBDatabaseCallbacks> callbacks_;
37
38 DISALLOW_COPY_AND_ASSIGN(IndexedDBConnection);
37 }; 39 };
38 40
39 } // namespace content 41 } // namespace content
40 42
41 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONNECTION_H_ 43 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONNECTION_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc ('k') | content/browser/indexed_db/indexed_db_cursor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698