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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBDatabaseObserverImpl.h

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring after Passing URLRequestContextGetter. Created 4 years, 4 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: third_party/WebKit/Source/modules/indexeddb/IDBDatabaseObserverImpl.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBDatabaseObserverImpl.h b/third_party/WebKit/Source/modules/indexeddb/IDBDatabaseObserverImpl.h
new file mode 100644
index 0000000000000000000000000000000000000000..c5b56e47ec8b17623c798602d9ebc912724192fc
--- /dev/null
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBDatabaseObserverImpl.h
@@ -0,0 +1,42 @@
+// Copyright 2016 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 IDBDatabaseObserverImpl_h
+#define IDBDatabaseObserverImpl_h
+
+#include "Source/modules/indexeddb/indexed_db.mojom-blink.h"
+#include "bindings/core/v8/ScriptValue.h"
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "mojo/public/cpp/bindings/binding.h"
+
+namespace blink {
+
+class IDBOpenDBRequest;
+
+class IDBDatabaseObserverImpl : WTF_NON_EXPORTED_BASE(public indexed_db::mojom::blink::DatabaseObserver)
+{
+public:
+ static indexed_db::mojom::blink::DatabaseObserverPtr Create(IDBOpenDBRequest*);
+
+private:
+ IDBDatabaseObserverImpl(indexed_db::mojom::blink::DatabaseObserverRequest, IDBOpenDBRequest*);
+ ~IDBDatabaseObserverImpl();
+ DECLARE_TRACE();
+
+ // indexed_db::mojom::blink::DatabaseObserver:
+ void OnTransactionAborted(int64_t hostTransactionId, indexed_db::mojom::blink::ErrorInfoPtr) override;
+ void OnTransactionCompleted(int64_t hostTransactionId) override;
+ void OnForcedClosed() override;
+ void OnVersionChange(int64_t oldVersion, int64_t newVersion) override;
+
+ WeakMember<IDBOpenDBRequest> m_request;
+
+ mojo::Binding<indexed_db::mojom::blink::DatabaseObserver> m_binding;
+
+ DISALLOW_COPY_AND_ASSIGN(IDBDatabaseObserverImpl);
+};
+
+} // namespace blink
+
+#endif // IDBDatabaseObserverImpl_h

Powered by Google App Engine
This is Rietveld 408576698