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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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
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_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>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 bool backing_store_transaction_begun_; 168 bool backing_store_transaction_begun_;
169 169
170 bool should_process_queue_; 170 bool should_process_queue_;
171 int pending_preemptive_events_; 171 int pending_preemptive_events_;
172 172
173 std::set<IndexedDBCursor*> open_cursors_; 173 std::set<IndexedDBCursor*> open_cursors_;
174 174
175 // This timer is started after requests have been processed. If no subsequent 175 // This timer is started after requests have been processed. If no subsequent
176 // requests are processed before the timer fires, assume the script is 176 // requests are processed before the timer fires, assume the script is
177 // unresponsive and abort to unblock the transaction queue. 177 // unresponsive and abort to unblock the transaction queue.
178 base::OneShotTimer<IndexedDBTransaction> timeout_timer_; 178 base::OneShotTimer timeout_timer_;
179 179
180 Diagnostics diagnostics_; 180 Diagnostics diagnostics_;
181 }; 181 };
182 182
183 } // namespace content 183 } // namespace content
184 184
185 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRANSACTION_H_ 185 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRANSACTION_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store.h ('k') | content/browser/loader/async_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698