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

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

Issue 15659013: Revert "Migrate the IndexedDB backend from Blink to Chromium" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« no previous file with comments | « content/browser/indexed_db/webidbfactory_impl.h ('k') | content/common/indexed_db/indexed_db_key.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/webidbfactory_impl.cc
diff --git a/content/browser/indexed_db/webidbfactory_impl.cc b/content/browser/indexed_db/webidbfactory_impl.cc
deleted file mode 100644
index 2805935f5d4ee97fe6205b669614a65a2ff39978..0000000000000000000000000000000000000000
--- a/content/browser/indexed_db/webidbfactory_impl.cc
+++ /dev/null
@@ -1,68 +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/webidbfactory_impl.h"
-
-#include "base/memory/scoped_ptr.h"
-#include "content/browser/indexed_db/indexed_db_callbacks_wrapper.h"
-#include "content/browser/indexed_db/indexed_db_factory.h"
-#include "content/browser/indexed_db/indexed_db_factory_impl.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebIDBDatabaseCallbacks.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebIDBDatabaseError.h"
-
-using WebKit::WebIDBCallbacks;
-using WebKit::WebIDBDatabaseCallbacks;
-using WebKit::WebIDBFactory;
-using WebKit::WebString;
-
-namespace content {
-
-WebIDBFactoryImpl::WebIDBFactoryImpl()
- : idb_factory_backend_(IndexedDBFactoryImpl::Create()) {}
-
-WebIDBFactoryImpl::~WebIDBFactoryImpl() {}
-
-void WebIDBFactoryImpl::getDatabaseNames(WebIDBCallbacks* callbacks,
- const WebString& database_identifier,
- const WebString& data_dir) {
- idb_factory_backend_->GetDatabaseNames(
- IndexedDBCallbacksWrapper::Create(callbacks),
- database_identifier,
- data_dir);
-}
-
-void WebIDBFactoryImpl::open(const WebString& name,
- long long version,
- long long transaction_id,
- WebIDBCallbacks* callbacks,
- WebIDBDatabaseCallbacks* database_callbacks,
- const WebString& database_identifier,
- const WebString& data_dir) {
- scoped_refptr<IndexedDBCallbacksWrapper> callbacks_proxy =
- IndexedDBCallbacksWrapper::Create(callbacks);
- scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks_proxy =
- IndexedDBDatabaseCallbacksWrapper::Create(database_callbacks);
-
- callbacks_proxy->SetDatabaseCallbacks(database_callbacks_proxy);
- idb_factory_backend_->Open(name,
- version,
- transaction_id,
- callbacks_proxy.get(),
- database_callbacks_proxy.get(),
- database_identifier,
- data_dir);
-}
-
-void WebIDBFactoryImpl::deleteDatabase(const WebString& name,
- WebIDBCallbacks* callbacks,
- const WebString& database_identifier,
- const WebString& data_dir) {
- idb_factory_backend_->DeleteDatabase(
- name,
- IndexedDBCallbacksWrapper::Create(callbacks),
- database_identifier,
- data_dir);
-}
-
-} // namespace WebKit
« no previous file with comments | « content/browser/indexed_db/webidbfactory_impl.h ('k') | content/common/indexed_db/indexed_db_key.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698