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

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

Issue 2472213003: [IndexedDB] Refactoring to remove ref ptrs and host transaction ids. (Closed)
Patch Set: rebased & working Created 4 years 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 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 "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
jsbell 2016/11/30 21:30:13 nit: include <memory> too
dmurph 2016/11/30 23:13:06 Done.
9 #include "content/common/indexed_db/indexed_db.mojom.h" 9 #include "content/common/indexed_db/indexed_db.mojom.h"
10 10
11 namespace base { 11 namespace base {
12 class SingleThreadTaskRunner; 12 class SingleThreadTaskRunner;
13 } 13 }
14 14
15 namespace content { 15 namespace content {
16 16
17 class IndexedDBCursor; 17 class IndexedDBCursor;
18 class IndexedDBDispatcherHost; 18 class IndexedDBDispatcherHost;
19 class IndexedDBKey; 19 class IndexedDBKey;
20 20
21 class CursorImpl : public ::indexed_db::mojom::Cursor { 21 class CursorImpl : public ::indexed_db::mojom::Cursor {
22 public: 22 public:
23 CursorImpl(scoped_refptr<IndexedDBCursor> cursor, 23 CursorImpl(std::unique_ptr<IndexedDBCursor> cursor,
24 const url::Origin& origin, 24 const url::Origin& origin,
25 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host); 25 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host);
26 ~CursorImpl() override; 26 ~CursorImpl() override;
27 27
28 // ::indexed_db::mojom::Cursor implementation 28 // ::indexed_db::mojom::Cursor implementation
29 void Advance( 29 void Advance(
30 uint32_t count, 30 uint32_t count,
31 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks) override; 31 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks) override;
32 void Continue( 32 void Continue(
33 const IndexedDBKey& key, 33 const IndexedDBKey& key,
(...skipping 14 matching lines...) Expand all
48 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; 48 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_;
49 const url::Origin origin_; 49 const url::Origin origin_;
50 scoped_refptr<base::SingleThreadTaskRunner> idb_runner_; 50 scoped_refptr<base::SingleThreadTaskRunner> idb_runner_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(CursorImpl); 52 DISALLOW_COPY_AND_ASSIGN(CursorImpl);
53 }; 53 };
54 54
55 } // namespace content 55 } // namespace content
56 56
57 #endif // CONTENT_BROWSER_INDEXED_DB_CURSOR_IMPL_H_ 57 #endif // CONTENT_BROWSER_INDEXED_DB_CURSOR_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/indexed_db/cursor_impl.cc » ('j') | content/browser/indexed_db/database_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698