OLD | NEW |
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/WebPassOwnPtr.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 WebURL url; | 33 WebURL url; |
34 WebURLRequest::FrameType frameType; | 34 WebURLRequest::FrameType frameType; |
35 WebServiceWorkerClientType clientType; | 35 WebServiceWorkerClientType clientType; |
36 }; | 36 }; |
37 | 37 |
38 struct WebServiceWorkerClientsInfo { | 38 struct WebServiceWorkerClientsInfo { |
39 WebVector<WebServiceWorkerClientInfo> clients; | 39 WebVector<WebServiceWorkerClientInfo> clients; |
40 }; | 40 }; |
41 | 41 |
42 // 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. |
43 using WebServiceWorkerClientCallbacks = WebCallbacks<WebPassOwnPtr<WebServiceWor
kerClientInfo>, WebPassOwnPtr<WebServiceWorkerError>>; | 43 using WebServiceWorkerClientCallbacks = WebCallbacks<WebPassOwnPtr<WebServiceWor
kerClientInfo>, const WebServiceWorkerError&>; |
44 using WebServiceWorkerClientsCallbacks = WebCallbacks<WebPassOwnPtr<WebServiceWo
rkerClientsInfo>, WebPassOwnPtr<WebServiceWorkerError>>; | 44 using WebServiceWorkerClientsCallbacks = WebCallbacks<const WebServiceWorkerClie
ntsInfo&, const WebServiceWorkerError&>; |
45 | 45 |
46 } // namespace blink | 46 } // namespace blink |
47 | 47 |
48 #endif // WebServiceWorkerClientsInfo_h | 48 #endif // WebServiceWorkerClientsInfo_h |
OLD | NEW |