| 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/WebURL.h" | 10 #include "public/platform/WebURL.h" |
| 11 #include "public/platform/WebURLRequest.h" | 11 #include "public/platform/WebURLRequest.h" |
| 12 #include "public/platform/WebVector.h" | 12 #include "public/platform/WebVector.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 struct WebServiceWorkerError; | 16 struct WebServiceWorkerError; |
| 17 | 17 |
| 18 struct WebServiceWorkerClientInfo { | 18 struct WebServiceWorkerClientInfo { |
| 19 WebServiceWorkerClientInfo() | 19 WebServiceWorkerClientInfo() |
| 20 : clientID(0) | 20 : clientID(0) |
| 21 , pageVisibilityState(WebPageVisibilityStateLast) | 21 , pageVisibilityState(WebPageVisibilityStateLast) |
| 22 , isFocused(false) | 22 , isFocused(false) |
| 23 , frameType(WebURLRequest::FrameTypeNone) | 23 , frameType(WebURLRequest::FrameTypeNone) |
| 24 { | 24 { |
| 25 } | 25 } |
| 26 | 26 |
| 27 int clientID; | 27 int clientID; |
| 28 // FIXME: remove when the Chromium code will be updated. | 28 |
| 29 WebString visibilityState; | |
| 30 WebPageVisibilityState pageVisibilityState; | 29 WebPageVisibilityState pageVisibilityState; |
| 31 bool isFocused; | 30 bool isFocused; |
| 32 WebURL url; | 31 WebURL url; |
| 33 WebURLRequest::FrameType frameType; | 32 WebURLRequest::FrameType frameType; |
| 34 }; | 33 }; |
| 35 | 34 |
| 36 struct WebServiceWorkerClientsInfo { | 35 struct WebServiceWorkerClientsInfo { |
| 37 WebVector<WebServiceWorkerClientInfo> clients; | 36 WebVector<WebServiceWorkerClientInfo> clients; |
| 38 }; | 37 }; |
| 39 | 38 |
| 40 typedef WebCallbacks<WebServiceWorkerClientsInfo, WebServiceWorkerError> WebServ
iceWorkerClientsCallbacks; | 39 typedef WebCallbacks<WebServiceWorkerClientsInfo, WebServiceWorkerError> WebServ
iceWorkerClientsCallbacks; |
| 41 | 40 |
| 42 } // namespace blink | 41 } // namespace blink |
| 43 | 42 |
| 44 #endif // WebServiceWorkerClientsInfo_h | 43 #endif // WebServiceWorkerClientsInfo_h |
| OLD | NEW |