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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/ResponseHandler.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 ResponseHandler_h
6 #define ResponseHandler_h
7
8 #include "platform/mojo/MojoHelper.h"
9 #include "public/platform/modules/indexeddb/indexed_db.mojom-blink.h"
10 #include "wtf/RefPtr.h"
11
12 namespace blink {
13
14 class IDBRequest;
15
16 class ResponseHandler final : public RefCounted<ResponseHandler> {
17 WTF_MAKE_NONCOPYABLE(ResponseHandler);
18
19 public:
20 static indexed_db::mojom::blink::Database::GetCallback createGetCallback(IDB Request*);
21 static indexed_db::mojom::blink::DatabaseFactory::OpenCallback createOpenCal lback(IDBRequest*);
22
23 private:
24 explicit ResponseHandler(IDBRequest*);
25
26 void onGet(indexed_db::mojom::blink::GetResultPtr);
27 void onOpen(indexed_db::mojom::blink::OpenResultPtr);
28
29 Persistent<IDBRequest> m_request;
30 };
31
32 } // namespace blink
33
34 #endif // ResponseHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698