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

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

Issue 18224002: IndexedDB: Eliminate IndexedDBDatabaseCallbacksWrapper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include fix for win 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/indexed_db_database_callbacks_wrapper.cc
diff --git a/content/browser/indexed_db/indexed_db_database_callbacks_wrapper.cc b/content/browser/indexed_db/indexed_db_database_callbacks_wrapper.cc
deleted file mode 100644
index 3b3af7004908ebe0bef5c5c9141bc638a8da4897..0000000000000000000000000000000000000000
--- a/content/browser/indexed_db/indexed_db_database_callbacks_wrapper.cc
+++ /dev/null
@@ -1,41 +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/indexed_db_database_callbacks.h"
-#include "content/browser/indexed_db/indexed_db_database_callbacks_wrapper.h"
-
-namespace content {
-
-IndexedDBDatabaseCallbacksWrapper::IndexedDBDatabaseCallbacksWrapper(
- IndexedDBDatabaseCallbacks* callbacks)
- : callbacks_(callbacks) {}
-IndexedDBDatabaseCallbacksWrapper::~IndexedDBDatabaseCallbacksWrapper() {}
-
-void IndexedDBDatabaseCallbacksWrapper::OnForcedClose() {
- if (!callbacks_)
- return;
- callbacks_->onForcedClose();
- callbacks_.reset();
-}
-void IndexedDBDatabaseCallbacksWrapper::OnVersionChange(int64 old_version,
- int64 new_version) {
- if (!callbacks_)
- return;
- callbacks_->onVersionChange(old_version, new_version);
-}
-
-void IndexedDBDatabaseCallbacksWrapper::OnAbort(
- int64 transaction_id,
- const IndexedDBDatabaseError& error) {
- if (!callbacks_)
- return;
- callbacks_->onAbort(transaction_id, error);
-}
-void IndexedDBDatabaseCallbacksWrapper::OnComplete(int64 transaction_id) {
- if (!callbacks_)
- return;
- callbacks_->onComplete(transaction_id);
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698