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

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

Issue 18221003: Convert WebIDBDatabaseImpl to IndexedDBConnection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback 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
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_callbacks.cc » ('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.h
diff --git a/content/browser/indexed_db/indexed_db_callbacks.h b/content/browser/indexed_db/indexed_db_callbacks.h
index 6ed751c6f83645dc377724eb33edffb6053b665c..b32415966891316c5b44d413f555077ab44c920b 100644
--- a/content/browser/indexed_db/indexed_db_callbacks.h
+++ b/content/browser/indexed_db/indexed_db_callbacks.h
@@ -19,13 +19,12 @@
#include "content/common/indexed_db/indexed_db_key_path.h"
#include "googleurl/src/gurl.h"
#include "third_party/WebKit/public/platform/WebIDBCallbacks.h"
-#include "third_party/WebKit/public/platform/WebIDBDatabase.h"
namespace content {
+class IndexedDBConnection;
class IndexedDBCursor;
class IndexedDBDatabase;
class IndexedDBDatabaseCallbacks;
-class WebIDBDatabaseImpl;
struct IndexedDBDatabaseMetadata;
class CONTENT_EXPORT IndexedDBCallbacks
@@ -76,13 +75,11 @@ class CONTENT_EXPORT IndexedDBCallbacks
// IndexedDBFactory::Open
virtual void OnUpgradeNeeded(
int64 old_version,
- scoped_refptr<IndexedDBDatabase> db,
+ scoped_ptr<IndexedDBConnection> connection,
const content::IndexedDBDatabaseMetadata& metadata,
WebKit::WebIDBCallbacks::DataLoss data_loss);
- virtual void OnSuccess(scoped_refptr<IndexedDBDatabase> db,
+ virtual void OnSuccess(scoped_ptr<IndexedDBConnection> connection,
const content::IndexedDBDatabaseMetadata& metadata);
- void SetDatabaseCallbacks(
- scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks);
// IndexedDBDatabase::OpenCursor
virtual void OnSuccess(scoped_refptr<IndexedDBCursor> cursor,
@@ -144,11 +141,6 @@ class CONTENT_EXPORT IndexedDBCallbacks
private:
friend class base::RefCounted<IndexedDBCallbacks>;
- scoped_ptr<WebIDBDatabaseImpl> web_database_impl_;
- scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks_;
- bool did_complete_;
- bool did_create_proxy_;
-
// Originally from IndexedDBCallbacks:
scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_;
int32 ipc_callbacks_id_;
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698