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

Unified Diff: content/browser/indexed_db/webidbcursor_impl.cc

Issue 18145004: IndexedDB: Eliminate WebIDBCursor wrapper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add RefIDMap Created 7 years, 6 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/webidbcursor_impl.cc
diff --git a/content/browser/indexed_db/webidbcursor_impl.cc b/content/browser/indexed_db/webidbcursor_impl.cc
deleted file mode 100644
index abb6f1c39728837be937077fc992cb4f074c2b45..0000000000000000000000000000000000000000
--- a/content/browser/indexed_db/webidbcursor_impl.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/indexed_db/webidbcursor_impl.h"
-
-#include "content/browser/indexed_db/indexed_db_callbacks_wrapper.h"
-#include "content/browser/indexed_db/indexed_db_cursor.h"
-#include "content/common/indexed_db/indexed_db_key.h"
-
-namespace content {
-
-WebIDBCursorImpl::WebIDBCursorImpl(
- scoped_refptr<IndexedDBCursor> idb_cursor_backend)
- : idb_cursor_backend_(idb_cursor_backend) {}
-
-WebIDBCursorImpl::~WebIDBCursorImpl() {}
-
-void WebIDBCursorImpl::advance(unsigned long count,
- IndexedDBCallbacksBase* callbacks) {
- idb_cursor_backend_->Advance(count,
- IndexedDBCallbacksWrapper::Create(callbacks));
-}
-
-void WebIDBCursorImpl::continueFunction(const IndexedDBKey& key,
- IndexedDBCallbacksBase* callbacks) {
- idb_cursor_backend_->ContinueFunction(
- make_scoped_ptr(new IndexedDBKey(key)),
- IndexedDBCallbacksWrapper::Create(callbacks));
-}
-
-void WebIDBCursorImpl::prefetchContinue(int number_to_fetch,
- IndexedDBCallbacksBase* callbacks) {
- idb_cursor_backend_->PrefetchContinue(
- number_to_fetch, IndexedDBCallbacksWrapper::Create(callbacks));
-}
-
-void WebIDBCursorImpl::prefetchReset(int used_prefetches,
- int unused_prefetches) {
- idb_cursor_backend_->PrefetchReset(used_prefetches, unused_prefetches);
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698