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

Side by Side Diff: content/child/indexed_db/indexed_db_dispatcher.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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
« no previous file with comments | « content/child/fileapi/webfilesystem_impl.cc ('k') | content/child/quota_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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/memory/ptr_util.h"
11 #include "base/threading/thread_local.h" 11 #include "base/threading/thread_local.h"
12 #include "content/child/indexed_db/indexed_db_key_builders.h" 12 #include "content/child/indexed_db/indexed_db_key_builders.h"
13 #include "content/child/indexed_db/webidbcursor_impl.h" 13 #include "content/child/indexed_db/webidbcursor_impl.h"
14 #include "ipc/ipc_channel.h" 14 #include "ipc/ipc_channel.h"
15 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseCal lbacks.h" 15 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseCal lbacks.h"
16 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBObservation .h" 16 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBObservation .h"
17 17
18 using blink::WebIDBKey; 18 using blink::WebIDBKey;
19 using blink::WebIDBObservation; 19 using blink::WebIDBObservation;
20 using base::ThreadLocalPointer; 20 using base::ThreadLocalPointer;
21 21
22 namespace content { 22 namespace content {
23 static base::LazyInstance<ThreadLocalPointer<IndexedDBDispatcher> >::Leaky 23 static base::LazyInstance<ThreadLocalPointer<IndexedDBDispatcher>>::Leaky
24 g_idb_dispatcher_tls = LAZY_INSTANCE_INITIALIZER; 24 g_idb_dispatcher_tls = LAZY_INSTANCE_INITIALIZER;
25 25
26 namespace { 26 namespace {
27 27
28 IndexedDBDispatcher* const kHasBeenDeleted = 28 IndexedDBDispatcher* const kHasBeenDeleted =
29 reinterpret_cast<IndexedDBDispatcher*>(0x1); 29 reinterpret_cast<IndexedDBDispatcher*>(0x1);
30 30
31 } // unnamed namespace 31 } // unnamed namespace
32 32
33 IndexedDBDispatcher::IndexedDBDispatcher() { 33 IndexedDBDispatcher::IndexedDBDispatcher() {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 int64_t transaction_id, 106 int64_t transaction_id,
107 WebIDBCursorImpl* exception_cursor) { 107 WebIDBCursorImpl* exception_cursor) {
108 for (WebIDBCursorImpl* cursor : cursors_) { 108 for (WebIDBCursorImpl* cursor : cursors_) {
109 if (cursor != exception_cursor && 109 if (cursor != exception_cursor &&
110 cursor->transaction_id() == transaction_id) 110 cursor->transaction_id() == transaction_id)
111 cursor->ResetPrefetchCache(); 111 cursor->ResetPrefetchCache();
112 } 112 }
113 } 113 }
114 114
115 } // namespace content 115 } // namespace content
OLDNEW
« no previous file with comments | « content/child/fileapi/webfilesystem_impl.cc ('k') | content/child/quota_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698