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

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

Issue 18023022: Blob support for IDB [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge fixes [builds, untested] Created 7 years, 3 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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 17 matching lines...) Expand all
28 28
29 void Advance(uint32 count, scoped_refptr<IndexedDBCallbacks> callbacks); 29 void Advance(uint32 count, scoped_refptr<IndexedDBCallbacks> callbacks);
30 void Continue(scoped_ptr<IndexedDBKey> key, 30 void Continue(scoped_ptr<IndexedDBKey> key,
31 scoped_refptr<IndexedDBCallbacks> callbacks); 31 scoped_refptr<IndexedDBCallbacks> callbacks);
32 void PrefetchContinue(int number_to_fetch, 32 void PrefetchContinue(int number_to_fetch,
33 scoped_refptr<IndexedDBCallbacks> callbacks); 33 scoped_refptr<IndexedDBCallbacks> callbacks);
34 void PrefetchReset(int used_prefetches, int unused_prefetches); 34 void PrefetchReset(int used_prefetches, int unused_prefetches);
35 35
36 const IndexedDBKey& key() const { return cursor_->key(); } 36 const IndexedDBKey& key() const { return cursor_->key(); }
37 const IndexedDBKey& primary_key() const { return cursor_->primary_key(); } 37 const IndexedDBKey& primary_key() const { return cursor_->primary_key(); }
38 std::string* Value() const { 38 IndexedDBValue* Value() const {
39 return (cursor_type_ == indexed_db::CURSOR_KEY_ONLY) ? NULL 39 return (cursor_type_ == indexed_db::CURSOR_KEY_ONLY) ? NULL
40 : cursor_->Value(); 40 : cursor_->Value();
41 } 41 }
42 void Close(); 42 void Close();
43 43
44 void CursorIterationOperation(scoped_ptr<IndexedDBKey> key, 44 void CursorIterationOperation(scoped_ptr<IndexedDBKey> key,
45 scoped_refptr<IndexedDBCallbacks> callbacks, 45 scoped_refptr<IndexedDBCallbacks> callbacks,
46 IndexedDBTransaction* transaction); 46 IndexedDBTransaction* transaction);
47 void CursorAdvanceOperation(uint32 count, 47 void CursorAdvanceOperation(uint32 count,
48 scoped_refptr<IndexedDBCallbacks> callbacks, 48 scoped_refptr<IndexedDBCallbacks> callbacks,
(...skipping 16 matching lines...) Expand all
65 scoped_ptr<IndexedDBBackingStore::Cursor> cursor_; 65 scoped_ptr<IndexedDBBackingStore::Cursor> cursor_;
66 // Must be destroyed before transaction_. 66 // Must be destroyed before transaction_.
67 scoped_ptr<IndexedDBBackingStore::Cursor> saved_cursor_; 67 scoped_ptr<IndexedDBBackingStore::Cursor> saved_cursor_;
68 68
69 bool closed_; 69 bool closed_;
70 }; 70 };
71 71
72 } // namespace content 72 } // namespace content
73 73
74 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_ 74 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698