OLD | NEW |
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_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRANSACTION_H_ |
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRANSACTION_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRANSACTION_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 #include <stack> | 10 #include <stack> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
17 #include "content/browser/indexed_db/indexed_db_backing_store.h" | 17 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
18 #include "content/browser/indexed_db/indexed_db_database.h" | 18 #include "content/browser/indexed_db/indexed_db_database.h" |
19 #include "content/browser/indexed_db/indexed_db_database_error.h" | 19 #include "content/browser/indexed_db/indexed_db_database_error.h" |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 class IndexedDBDatabase; | |
24 class IndexedDBCursor; | 23 class IndexedDBCursor; |
25 class IndexedDBDatabaseCallbacks; | 24 class IndexedDBDatabaseCallbacks; |
26 | 25 |
27 class IndexedDBTransaction : public base::RefCounted<IndexedDBTransaction> { | 26 class IndexedDBTransaction : public base::RefCounted<IndexedDBTransaction> { |
28 public: | 27 public: |
29 static scoped_refptr<IndexedDBTransaction> Create( | 28 static scoped_refptr<IndexedDBTransaction> Create( |
30 int64 transaction_id, | 29 int64 transaction_id, |
31 scoped_refptr<IndexedDBDatabaseCallbacks> callbacks, | 30 scoped_refptr<IndexedDBDatabaseCallbacks> callbacks, |
32 const std::vector<int64>& scope, | 31 const std::vector<int64>& scope, |
33 indexed_db::TransactionMode, | 32 indexed_db::TransactionMode, |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 146 |
148 base::OneShotTimer<IndexedDBTransaction> task_timer_; | 147 base::OneShotTimer<IndexedDBTransaction> task_timer_; |
149 int pending_preemptive_events_; | 148 int pending_preemptive_events_; |
150 | 149 |
151 std::set<IndexedDBCursor*> open_cursors_; | 150 std::set<IndexedDBCursor*> open_cursors_; |
152 }; | 151 }; |
153 | 152 |
154 } // namespace content | 153 } // namespace content |
155 | 154 |
156 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRANSACTION_H_ | 155 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRANSACTION_H_ |
OLD | NEW |