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

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

Issue 958933004: ServiceWorker: plumbing for ClientQueryOptions (1/2, blink) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months 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 | Annotate | Revision Log
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/WebPageVisibilityState.h" 9 #include "public/platform/WebPageVisibilityState.h"
10 #include "public/platform/WebServiceWorkerClientType.h"
10 #include "public/platform/WebURL.h" 11 #include "public/platform/WebURL.h"
11 #include "public/platform/WebURLRequest.h" 12 #include "public/platform/WebURLRequest.h"
12 #include "public/platform/WebVector.h" 13 #include "public/platform/WebVector.h"
13 14
14 namespace blink { 15 namespace blink {
15 16
16 struct WebServiceWorkerError; 17 struct WebServiceWorkerError;
17 18
18 struct WebServiceWorkerClientInfo { 19 struct WebServiceWorkerClientInfo {
19 WebServiceWorkerClientInfo() 20 WebServiceWorkerClientInfo()
20 : clientID(0) 21 : clientID(0)
21 , pageVisibilityState(WebPageVisibilityStateLast) 22 , pageVisibilityState(WebPageVisibilityStateLast)
22 , isFocused(false) 23 , isFocused(false)
23 , frameType(WebURLRequest::FrameTypeNone) 24 , frameType(WebURLRequest::FrameTypeNone)
25 , clientType(WebServiceWorkerClientTypeWindow)
24 { 26 {
25 } 27 }
26 28
27 int clientID; 29 int clientID;
28 30
29 WebPageVisibilityState pageVisibilityState; 31 WebPageVisibilityState pageVisibilityState;
30 bool isFocused; 32 bool isFocused;
31 WebURL url; 33 WebURL url;
32 WebURLRequest::FrameType frameType; 34 WebURLRequest::FrameType frameType;
35 WebServiceWorkerClientType clientType;
33 }; 36 };
34 37
35 struct WebServiceWorkerClientsInfo { 38 struct WebServiceWorkerClientsInfo {
36 WebVector<WebServiceWorkerClientInfo> clients; 39 WebVector<WebServiceWorkerClientInfo> clients;
37 }; 40 };
38 41
39 // Two WebCallbacks, one for one client, one for a WebVector of clients. 42 // Two WebCallbacks, one for one client, one for a WebVector of clients.
40 typedef WebCallbacks<WebServiceWorkerClientInfo, WebServiceWorkerError> WebServi ceWorkerClientCallbacks; 43 typedef WebCallbacks<WebServiceWorkerClientInfo, WebServiceWorkerError> WebServi ceWorkerClientCallbacks;
41 typedef WebCallbacks<WebServiceWorkerClientsInfo, WebServiceWorkerError> WebServ iceWorkerClientsCallbacks; 44 typedef WebCallbacks<WebServiceWorkerClientsInfo, WebServiceWorkerError> WebServ iceWorkerClientsCallbacks;
42 45
43 } // namespace blink 46 } // namespace blink
44 47
45 #endif // WebServiceWorkerClientsInfo_h 48 #endif // WebServiceWorkerClientsInfo_h
OLDNEW
« no previous file with comments | « public/platform/WebServiceWorkerClientType.h ('k') | public/web/WebServiceWorkerContextClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698