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

Side by Side Diff: content/common/service_worker/service_worker_client_info.h

Issue 1254023006: Move ServiceWorker public headers to public/{web,platform}/modules/serviceworker (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_CLIENT_INFO_H_ 5 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_CLIENT_INFO_H_
6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_CLIENT_INFO_H_ 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_CLIENT_INFO_H_
7 7
8 #include "content/public/common/request_context_frame_type.h" 8 #include "content/public/common/request_context_frame_type.h"
9 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 9 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
10 #include "third_party/WebKit/public/platform/WebServiceWorkerClientType.h" 10 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerClientType.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // This class holds the information related to a service worker window client. 15 // This class holds the information related to a service worker window client.
16 // It is the content/ equivalent of Blink's WebServiceWorkerClientInfo. 16 // It is the content/ equivalent of Blink's WebServiceWorkerClientInfo.
17 // An instance can be created empty or can be filed with the expected 17 // An instance can be created empty or can be filed with the expected
18 // properties. Except for the client_uuid, it is preferred to use the 18 // properties. Except for the client_uuid, it is preferred to use the
19 // constructor to fill the properties. 19 // constructor to fill the properties.
20 struct ServiceWorkerClientInfo { 20 struct ServiceWorkerClientInfo {
(...skipping 15 matching lines...) Expand all
36 blink::WebPageVisibilityState page_visibility_state; 36 blink::WebPageVisibilityState page_visibility_state;
37 bool is_focused; 37 bool is_focused;
38 GURL url; 38 GURL url;
39 RequestContextFrameType frame_type; 39 RequestContextFrameType frame_type;
40 blink::WebServiceWorkerClientType client_type; 40 blink::WebServiceWorkerClientType client_type;
41 }; 41 };
42 42
43 } // namespace content 43 } // namespace content
44 44
45 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_CLIENT_INFO_H_ 45 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_CLIENT_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698