Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: public/platform/WebServiceWorkerClientsInfo.h

Issue 778703004: Implement ServiceWorkerClient attributes [3/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@properties-step1
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/WebURL.h" 9 #include "public/platform/WebURL.h"
10 #include "public/platform/WebURLRequest.h" 10 #include "public/platform/WebURLRequest.h"
11 #include "public/platform/WebVector.h" 11 #include "public/platform/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 isFocused; 22 bool isFocused;
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698