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

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

Issue 15724006: Migrate IDBDatabaseBackendTest from blink to chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix exports for WebIDBDatabase too 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 | « no previous file | content/browser/indexed_db/indexed_db_database.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_callbacks_wrapper.h
diff --git a/content/browser/indexed_db/indexed_db_callbacks_wrapper.h b/content/browser/indexed_db/indexed_db_callbacks_wrapper.h
index 7fdd4d54e2a41229c64c56fea2fd6834226c5892..883612292adfa376a45fe4ac96c32f6d6d37ab8f 100644
--- a/content/browser/indexed_db/indexed_db_callbacks_wrapper.h
+++ b/content/browser/indexed_db/indexed_db_callbacks_wrapper.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_WRAPPER_H_
#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_WRAPPER_H_
+#include <string>
#include <vector>
#include "base/basictypes.h"
@@ -25,7 +26,7 @@ namespace content {
class IndexedDBCursor;
class WebIDBDatabaseImpl;
-class IndexedDBCallbacksWrapper
+class CONTENT_EXPORT IndexedDBCallbacksWrapper
: public base::RefCounted<IndexedDBCallbacksWrapper> {
public:
static scoped_refptr<IndexedDBCallbacksWrapper> Create(
@@ -69,7 +70,7 @@ class IndexedDBCallbacksWrapper
const std::vector<IndexedDBKey>& primary_keys,
const std::vector<std::vector<char> >& values);
// From IDBFactory.open()/deleteDatabase()
- virtual void OnBlocked(int64 /* existing_version */);
+ virtual void OnBlocked(int64 existing_version);
// From IDBFactory.open()
virtual void OnUpgradeNeeded(int64 /* old_version */,
scoped_refptr<IndexedDBDatabase> db,
@@ -79,9 +80,11 @@ class IndexedDBCallbacksWrapper
virtual void SetDatabaseCallbacks(
scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks);
- private:
- explicit IndexedDBCallbacksWrapper(WebKit::WebIDBCallbacks* callbacks);
+ protected:
virtual ~IndexedDBCallbacksWrapper();
+ explicit IndexedDBCallbacksWrapper(WebKit::WebIDBCallbacks* callbacks);
+
+ private:
friend class base::RefCounted<IndexedDBCallbacksWrapper>;
scoped_ptr<WebIDBDatabaseImpl> web_database_impl_;
scoped_ptr<WebKit::WebIDBCallbacks> callbacks_;
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698