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