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

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

Issue 1504033007: Move Indexed DB from dedicated thread to task scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timer
Patch Set: Tweak traits Created 3 years, 6 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/browser/browser_main_loop.cc ('k') | content/browser/indexed_db/cursor_impl.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_CURSOR_IMPL_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_CURSOR_IMPL_H_
6 #define CONTENT_BROWSER_INDEXED_DB_CURSOR_IMPL_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_CURSOR_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 28 matching lines...) Expand all
39 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks) override; 39 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks) override;
40 void Prefetch( 40 void Prefetch(
41 int32_t count, 41 int32_t count,
42 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks) override; 42 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks) override;
43 void PrefetchReset( 43 void PrefetchReset(
44 int32_t used_prefetches, 44 int32_t used_prefetches,
45 int32_t unused_prefetches, 45 int32_t unused_prefetches,
46 const std::vector<std::string>& unused_blob_uuids) override; 46 const std::vector<std::string>& unused_blob_uuids) override;
47 47
48 private: 48 private:
49 class IDBThreadHelper; 49 class IDBSequenceHelper;
50 50
51 IDBThreadHelper* helper_; 51 IDBSequenceHelper* helper_;
52 // This raw pointer is safe because all CursorImpl instances are owned by an 52 // This raw pointer is safe because all CursorImpl instances are owned by an
53 // IndexedDBDispatcherHost. 53 // IndexedDBDispatcherHost.
54 IndexedDBDispatcherHost* dispatcher_host_; 54 IndexedDBDispatcherHost* dispatcher_host_;
55 const url::Origin origin_; 55 const url::Origin origin_;
56 scoped_refptr<base::SequencedTaskRunner> idb_runner_; 56 scoped_refptr<base::SequencedTaskRunner> idb_runner_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(CursorImpl); 58 DISALLOW_COPY_AND_ASSIGN(CursorImpl);
59 }; 59 };
60 60
61 } // namespace content 61 } // namespace content
62 62
63 #endif // CONTENT_BROWSER_INDEXED_DB_CURSOR_IMPL_H_ 63 #endif // CONTENT_BROWSER_INDEXED_DB_CURSOR_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/indexed_db/cursor_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698