Chromium Code Reviews| 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" | |
|
tkent
2014/12/08 04:54:25
This should be "public/platform/WebURL.h"
It's in
Kunihiko Sakamoto
2014/12/08 05:12:04
Fixed.
| |
| 10 #include "WebURLRequest.h" | |
|
tkent
2014/12/08 04:54:25
should be "public/platform/WebURLRequest.h"
Kunihiko Sakamoto
2014/12/08 05:12:04
Done.
| |
| 9 #include "WebVector.h" | 11 #include "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 focused; | |
|
tkent
2014/12/08 04:54:25
Probably, this should be |isFocused|.
Kunihiko Sakamoto
2014/12/08 05:12:04
Wanted to match with the IDL attribute name, but i
| |
| 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 |