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

Side by Side Diff: public/platform/WebServiceWorkerClientsInfo.h

Issue 1234603003: CallbackPromiseAdapter types should be more compatible with WebCallbacks (1/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: retry! Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebServiceWorkerClientsInfo_h 5 #ifndef WebServiceWorkerClientsInfo_h
6 #define WebServiceWorkerClientsInfo_h 6 #define WebServiceWorkerClientsInfo_h
7 7
8 #include "public/platform/WebCallbacks.h" 8 #include "public/platform/WebCallbacks.h"
9 #include "public/platform/WebPageVisibilityState.h" 9 #include "public/platform/WebPageVisibilityState.h"
10 #include "public/platform/WebPassOwnPtr.h"
10 #include "public/platform/WebServiceWorkerClientType.h" 11 #include "public/platform/WebServiceWorkerClientType.h"
11 #include "public/platform/WebURL.h" 12 #include "public/platform/WebURL.h"
12 #include "public/platform/WebURLRequest.h" 13 #include "public/platform/WebURLRequest.h"
13 #include "public/platform/WebVector.h" 14 #include "public/platform/WebVector.h"
14 15
15 namespace blink { 16 namespace blink {
16 17
17 struct WebServiceWorkerError; 18 struct WebServiceWorkerError;
18 19
19 struct WebServiceWorkerClientInfo { 20 struct WebServiceWorkerClientInfo {
(...skipping 12 matching lines...) Expand all
32 WebURL url; 33 WebURL url;
33 WebURLRequest::FrameType frameType; 34 WebURLRequest::FrameType frameType;
34 WebServiceWorkerClientType clientType; 35 WebServiceWorkerClientType clientType;
35 }; 36 };
36 37
37 struct WebServiceWorkerClientsInfo { 38 struct WebServiceWorkerClientsInfo {
38 WebVector<WebServiceWorkerClientInfo> clients; 39 WebVector<WebServiceWorkerClientInfo> clients;
39 }; 40 };
40 41
41 // Two WebCallbacks, one for one client, one for a WebVector of clients. 42 // Two WebCallbacks, one for one client, one for a WebVector of clients.
42 typedef WebCallbacks<WebServiceWorkerClientInfo*, WebServiceWorkerError*> WebSer viceWorkerClientCallbacks; 43 using WebServiceWorkerClientCallbacks = WebCallbacks<WebPassOwnPtr<WebServiceWor kerClientInfo>, WebPassOwnPtr<WebServiceWorkerError>>;
43 typedef WebCallbacks<WebServiceWorkerClientsInfo*, WebServiceWorkerError*> WebSe rviceWorkerClientsCallbacks; 44 using WebServiceWorkerClientsCallbacks = WebCallbacks<WebPassOwnPtr<WebServiceWo rkerClientsInfo>, WebPassOwnPtr<WebServiceWorkerError>>;
44 45
45 } // namespace blink 46 } // namespace blink
46 47
47 #endif // WebServiceWorkerClientsInfo_h 48 #endif // WebServiceWorkerClientsInfo_h
OLDNEW
« no previous file with comments | « public/platform/WebServiceWorkerClientsClaimCallbacks.h ('k') | public/platform/WebServiceWorkerRegistration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698