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

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

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.h
diff --git a/content/browser/indexed_db/indexed_db_database_callbacks_wrapper.h b/content/browser/indexed_db/indexed_db_database_callbacks_wrapper.h
deleted file mode 100644
index e9b85c62e6d0b6f8b2bc780440254edccf0f8d07..0000000000000000000000000000000000000000
--- a/content/browser/indexed_db/indexed_db_database_callbacks_wrapper.h
+++ /dev/null
@@ -1,46 +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.
-
-#ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_WRAPPER_H_
-#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_WRAPPER_H_
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/strings/string16.h"
-#include "content/browser/indexed_db/indexed_db_database_error.h"
-#include "content/common/content_export.h"
-
-namespace content {
-class IndexedDBDatabaseCallbacks;
-
-class CONTENT_EXPORT IndexedDBDatabaseCallbacksWrapper
- : public base::RefCounted<IndexedDBDatabaseCallbacksWrapper> {
- public:
- static scoped_refptr<IndexedDBDatabaseCallbacksWrapper> Create(
- IndexedDBDatabaseCallbacks* callbacks) {
- return make_scoped_refptr(new IndexedDBDatabaseCallbacksWrapper(callbacks));
- }
-
- virtual void OnForcedClose();
- virtual void OnVersionChange(int64 old_version, int64 new_version);
-
- virtual void OnAbort(int64 transaction_id,
- const IndexedDBDatabaseError& error);
- virtual void OnComplete(int64 transaction_id);
-
- protected:
- explicit IndexedDBDatabaseCallbacksWrapper(
- IndexedDBDatabaseCallbacks* callbacks);
- virtual ~IndexedDBDatabaseCallbacksWrapper();
-
- private:
- friend class base::RefCounted<IndexedDBDatabaseCallbacksWrapper>;
-
- scoped_ptr<IndexedDBDatabaseCallbacks> callbacks_;
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_WRAPPER_H_

Powered by Google App Engine
This is Rietveld 408576698