Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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_ |
| OLD | NEW |