| 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 "WebCallbacks.h" | 8 #include "public/platform/WebCallbacks.h" |
| 9 #include "WebVector.h" | 9 #include "public/platform/WebURL.h" |
| 10 #include "public/platform/WebURLRequest.h" |
| 11 #include "public/platform/WebVector.h" |
| 10 | 12 |
| 11 namespace blink { | 13 namespace blink { |
| 12 | 14 |
| 13 struct WebServiceWorkerError; | 15 struct WebServiceWorkerError; |
| 14 | 16 |
| 17 struct WebServiceWorkerClientInfo { |
| 18 int clientID; |
| 19 // FIXME: Use WebPageVisibilityState? That will require moving |
| 20 // WebPageVisibilityState from public/web to public/platform. |
| 21 WebString visibilityState; |
| 22 bool isFocused; |
| 23 WebURL url; |
| 24 WebURLRequest::FrameType frameType; |
| 25 }; |
| 26 |
| 15 struct WebServiceWorkerClientsInfo { | 27 struct WebServiceWorkerClientsInfo { |
| 28 WebVector<WebServiceWorkerClientInfo> clients; |
| 29 // FIXME: Remove this once the embedder stops using it. |
| 16 WebVector<int> clientIDs; | 30 WebVector<int> clientIDs; |
| 17 }; | 31 }; |
| 18 | 32 |
| 19 typedef WebCallbacks<WebServiceWorkerClientsInfo, WebServiceWorkerError> WebServ
iceWorkerClientsCallbacks; | 33 typedef WebCallbacks<WebServiceWorkerClientsInfo, WebServiceWorkerError> WebServ
iceWorkerClientsCallbacks; |
| 20 | 34 |
| 21 } // namespace blink | 35 } // namespace blink |
| 22 | 36 |
| 23 #endif // WebServiceWorkerClientsInfo_h | 37 #endif // WebServiceWorkerClientsInfo_h |
| OLD | NEW |