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 #include "content/child/indexed_db/indexed_db_dispatcher.h" | 5 #include "content/child/indexed_db/indexed_db_dispatcher.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/memory/ptr_util.h" |
10 #include "base/threading/thread_local.h" | 11 #include "base/threading/thread_local.h" |
11 #include "content/child/indexed_db/indexed_db_key_builders.h" | 12 #include "content/child/indexed_db/indexed_db_key_builders.h" |
12 #include "content/child/indexed_db/webidbcursor_impl.h" | 13 #include "content/child/indexed_db/webidbcursor_impl.h" |
13 #include "ipc/ipc_channel.h" | 14 #include "ipc/ipc_channel.h" |
14 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseCal
lbacks.h" | 15 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseCal
lbacks.h" |
15 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBObservation
.h" | 16 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBObservation
.h" |
16 | 17 |
17 using blink::WebIDBKey; | 18 using blink::WebIDBKey; |
18 using blink::WebIDBObservation; | 19 using blink::WebIDBObservation; |
19 using base::ThreadLocalPointer; | 20 using base::ThreadLocalPointer; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 int64_t transaction_id, | 106 int64_t transaction_id, |
106 WebIDBCursorImpl* exception_cursor) { | 107 WebIDBCursorImpl* exception_cursor) { |
107 for (WebIDBCursorImpl* cursor : cursors_) { | 108 for (WebIDBCursorImpl* cursor : cursors_) { |
108 if (cursor != exception_cursor && | 109 if (cursor != exception_cursor && |
109 cursor->transaction_id() == transaction_id) | 110 cursor->transaction_id() == transaction_id) |
110 cursor->ResetPrefetchCache(); | 111 cursor->ResetPrefetchCache(); |
111 } | 112 } |
112 } | 113 } |
113 | 114 |
114 } // namespace content | 115 } // namespace content |
OLD | NEW |