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