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

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

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some (incomplete) work on struct traits. Created 4 years, 5 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_callbacks.h
diff --git a/content/browser/indexed_db/indexed_db_callbacks.h b/content/browser/indexed_db/indexed_db_callbacks.h
index 4895c3be03f4af585d55c44cb0fc4184a186815b..9ebd61083e9454a8681168b91aa660bdaca3ee81 100644
--- a/content/browser/indexed_db/indexed_db_callbacks.h
+++ b/content/browser/indexed_db/indexed_db_callbacks.h
@@ -11,12 +11,14 @@
#include <string>
#include <vector>
+#include "base/callback.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/strings/string16.h"
+#include "base/time/time.h"
#include "content/browser/indexed_db/indexed_db_database_error.h"
-#include "content/browser/indexed_db/indexed_db_dispatcher_host.h"
+//#include "content/browser/indexed_db/indexed_db_dispatcher_host.h"
#include "content/common/indexed_db/indexed_db_key.h"
#include "content/common/indexed_db/indexed_db_key_path.h"
#include "url/origin.h"
@@ -34,6 +36,9 @@ struct IndexedDBValue;
class CONTENT_EXPORT IndexedDBCallbacks
: public base::RefCounted<IndexedDBCallbacks> {
public:
+#if 1
+ IndexedDBCallbacks();
+#else
// Simple payload responses
IndexedDBCallbacks(IndexedDBDispatcherHost* dispatcher_host,
int32_t ipc_thread_id,
@@ -52,6 +57,7 @@ class CONTENT_EXPORT IndexedDBCallbacks
int32_t ipc_database_callbacks_id,
int64_t host_transaction_id,
const url::Origin& origin);
+#endif
virtual void OnError(const IndexedDBDatabaseError& error);
@@ -121,7 +127,7 @@ class CONTENT_EXPORT IndexedDBCallbacks
friend class base::RefCounted<IndexedDBCallbacks>;
// Originally from IndexedDBCallbacks:
- scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_;
+ // scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_;
int32_t ipc_callbacks_id_;
int32_t ipc_thread_id_;

Powered by Google App Engine
This is Rietveld 408576698