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

Unified Diff: content/browser/indexed_db/indexed_db_cursor.h

Issue 19117005: IndexedDB: Coding conventions and cleanup (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 side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/indexed_db_cursor.h
diff --git a/content/browser/indexed_db/indexed_db_cursor.h b/content/browser/indexed_db/indexed_db_cursor.h
index 6e0807c7d1cb018aa99feef4807d88e58adf4255..2cf9d4f3eccf2bba1ff940b433f85c0a2f471167 100644
--- a/content/browser/indexed_db/indexed_db_cursor.h
+++ b/content/browser/indexed_db/indexed_db_cursor.h
@@ -21,26 +21,11 @@ class IndexedDBTransaction;
class CONTENT_EXPORT IndexedDBCursor
: NON_EXPORTED_BASE(public base::RefCounted<IndexedDBCursor>) {
public:
- static scoped_refptr<IndexedDBCursor> Create(
- scoped_ptr<IndexedDBBackingStore::Cursor> cursor,
- indexed_db::CursorType cursor_type,
- IndexedDBTransaction* transaction) {
- return make_scoped_refptr(
- new IndexedDBCursor(cursor.Pass(),
- cursor_type,
- IndexedDBDatabase::NORMAL_TASK,
- transaction));
- }
- static scoped_refptr<IndexedDBCursor> Create(
- scoped_ptr<IndexedDBBackingStore::Cursor> cursor,
- indexed_db::CursorType cursor_type,
- IndexedDBDatabase::TaskType task_type,
- IndexedDBTransaction* transaction) {
- return make_scoped_refptr(new IndexedDBCursor(
- cursor.Pass(), cursor_type, task_type, transaction));
- }
+ IndexedDBCursor(scoped_ptr<IndexedDBBackingStore::Cursor> cursor,
+ indexed_db::CursorType cursor_type,
+ IndexedDBDatabase::TaskType task_type,
+ IndexedDBTransaction* transaction);
- // IndexedDBCursor
void Advance(uint32 count, scoped_refptr<IndexedDBCallbacks> callbacks);
void Continue(scoped_ptr<IndexedDBKey> key,
scoped_refptr<IndexedDBCallbacks> callbacks);
@@ -59,10 +44,6 @@ class CONTENT_EXPORT IndexedDBCursor
private:
friend class base::RefCounted<IndexedDBCursor>;
- IndexedDBCursor(scoped_ptr<IndexedDBBackingStore::Cursor> cursor,
- indexed_db::CursorType cursor_type,
- IndexedDBDatabase::TaskType task_type,
- IndexedDBTransaction* transaction);
~IndexedDBCursor();
class CursorIterationOperation;

Powered by Google App Engine
This is Rietveld 408576698