OLD | NEW |
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 <memory> |
| 9 #include <vector> |
| 10 |
8 #include "base/macros.h" | 11 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
10 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
11 #include "content/browser/indexed_db/indexed_db_database.h" | 14 #include "content/browser/indexed_db/indexed_db_database.h" |
12 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" | 15 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" |
13 #include "content/browser/indexed_db/indexed_db_observer.h" | 16 #include "content/browser/indexed_db/indexed_db_observer.h" |
14 | 17 |
15 namespace content { | 18 namespace content { |
16 class IndexedDBDatabaseError; | 19 class IndexedDBDatabaseError; |
17 | 20 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 scoped_refptr<IndexedDBDatabaseCallbacks> callbacks_; | 64 scoped_refptr<IndexedDBDatabaseCallbacks> callbacks_; |
62 std::vector<std::unique_ptr<IndexedDBObserver>> active_observers_; | 65 std::vector<std::unique_ptr<IndexedDBObserver>> active_observers_; |
63 base::WeakPtrFactory<IndexedDBConnection> weak_factory_; | 66 base::WeakPtrFactory<IndexedDBConnection> weak_factory_; |
64 | 67 |
65 DISALLOW_COPY_AND_ASSIGN(IndexedDBConnection); | 68 DISALLOW_COPY_AND_ASSIGN(IndexedDBConnection); |
66 }; | 69 }; |
67 | 70 |
68 } // namespace content | 71 } // namespace content |
69 | 72 |
70 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONNECTION_H_ | 73 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONNECTION_H_ |
OLD | NEW |