diff options
Diffstat (limited to 'content/browser/indexed_db/indexed_db_database_callbacks_wrapper.cc')
-rw-r--r-- | content/browser/indexed_db/indexed_db_database_callbacks_wrapper.cc | 42 |
1 files changed, 0 insertions, 42 deletions
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 6e99f0c..0000000 --- a/content/browser/indexed_db/indexed_db_database_callbacks_wrapper.cc +++ /dev/null @@ -1,42 +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_wrapper.h" - -namespace content { - -IndexedDBDatabaseCallbacksWrapper::IndexedDBDatabaseCallbacksWrapper( - WebKit::WebIDBDatabaseCallbacks* 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, - scoped_refptr<IndexedDBDatabaseError> error) { - if (!callbacks_) - return; - callbacks_->onAbort( - transaction_id, - WebKit::WebIDBDatabaseError(error->code(), error->message())); -} -void IndexedDBDatabaseCallbacksWrapper::OnComplete(int64 transaction_id) { - if (!callbacks_) - return; - callbacks_->onComplete(transaction_id); -} - -} // namespace content |