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

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

Issue 18241003: IndexedDB: Remove IndexedDBCallbacksWrapper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 static scoped_refptr<IndexedDBCursor> Create( 35 static scoped_refptr<IndexedDBCursor> Create(
36 scoped_ptr<IndexedDBBackingStore::Cursor> cursor, 36 scoped_ptr<IndexedDBBackingStore::Cursor> cursor,
37 indexed_db::CursorType cursor_type, 37 indexed_db::CursorType cursor_type,
38 IndexedDBDatabase::TaskType task_type, 38 IndexedDBDatabase::TaskType task_type,
39 IndexedDBTransaction* transaction) { 39 IndexedDBTransaction* transaction) {
40 return make_scoped_refptr(new IndexedDBCursor( 40 return make_scoped_refptr(new IndexedDBCursor(
41 cursor.Pass(), cursor_type, task_type, transaction)); 41 cursor.Pass(), cursor_type, task_type, transaction));
42 } 42 }
43 43
44 // IndexedDBCursor 44 // IndexedDBCursor
45 void Advance(uint32 count, 45 void Advance(uint32 count, scoped_refptr<IndexedDBCallbacks> callbacks);
46 scoped_refptr<IndexedDBCallbacksWrapper> callbacks);
47 void ContinueFunction(scoped_ptr<IndexedDBKey> key, 46 void ContinueFunction(scoped_ptr<IndexedDBKey> key,
48 scoped_refptr<IndexedDBCallbacksWrapper> callbacks); 47 scoped_refptr<IndexedDBCallbacks> callbacks);
49 void PrefetchContinue(int number_to_fetch, 48 void PrefetchContinue(int number_to_fetch,
50 scoped_refptr<IndexedDBCallbacksWrapper> callbacks); 49 scoped_refptr<IndexedDBCallbacks> callbacks);
51 void PrefetchReset(int used_prefetches, int unused_prefetches); 50 void PrefetchReset(int used_prefetches, int unused_prefetches);
52 51
53 const IndexedDBKey& key() const { return cursor_->key(); } 52 const IndexedDBKey& key() const { return cursor_->key(); }
54 const IndexedDBKey& primary_key() const { return cursor_->primary_key(); } 53 const IndexedDBKey& primary_key() const { return cursor_->primary_key(); }
55 std::vector<char>* Value() const { 54 std::vector<char>* Value() const {
56 return (cursor_type_ == indexed_db::CURSOR_KEY_ONLY) ? NULL 55 return (cursor_type_ == indexed_db::CURSOR_KEY_ONLY) ? NULL
57 : cursor_->Value(); 56 : cursor_->Value();
58 } 57 }
59 void Close(); 58 void Close();
60 59
(...skipping 18 matching lines...) Expand all
79 scoped_ptr<IndexedDBBackingStore::Cursor> cursor_; 78 scoped_ptr<IndexedDBBackingStore::Cursor> cursor_;
80 // Must be destroyed before transaction_. 79 // Must be destroyed before transaction_.
81 scoped_ptr<IndexedDBBackingStore::Cursor> saved_cursor_; 80 scoped_ptr<IndexedDBBackingStore::Cursor> saved_cursor_;
82 81
83 bool closed_; 82 bool closed_;
84 }; 83 };
85 84
86 } // namespace content 85 } // namespace content
87 86
88 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_ 87 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698