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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBDatabaseObserver.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IDBDatabaseObserver_h
6 #define IDBDatabaseObserver_h
7
8 #include "mojo/public/cpp/bindings/strong_binding.h"
9 #include "third_party/WebKit/public/platform/modules/indexeddb/indexed_db.mojom- blink.h"
10
11 namespace indexed_db {
12 namespace mojom {
13 namespace blink {
14
15 class IDBDatabaseObserverImpl : public mojom::blink::DatabaseObserver {
16 public:
17 static DatabaseObserverPtr Create();
18
19 private:
20 ~IDBDatabaseObserverImpl();
21
22 void OnForcedClosed() override;
23
24 void OnVersionChange(int64_t oldVersion, int64_t newVersion) override;
25
26 void OnTransactionAborted(int64_t hostTransactionId, ErrorInfoPtr) override;
27
28 void OnTransactionCompleted(int64_t hostTransactionId) override;
29
30 mojo::StrongBinding<mojom::blink::IDBDatabaseObserverImpl> m_binding;
31
32 DISALLOW_COPY_AND_ASSIGN(IDBDatabaseObserverImpl);
33 };
34
35 } // namespace blink
36 } // namespace mojom
37 } // namespace indexed_db
38
39 #endif // IDBDatabaseObserver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698