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

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

Issue 2653493009: Add two interfaces for ServiceWorkerProviderContext/ProviderHost (Closed)
Patch Set: Skip unittest for CrossSiteTransfer when PlzNavigate Created 3 years, 6 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_PROVIDER_STRUCT_TRAITS_H_ 5 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_STRUCT_TRAITS_H_
6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_STRUCT_TRAITS_H_ 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_STRUCT_TRAITS_H_
7 7
8 #include "content/common/service_worker/service_worker_provider.mojom.h" 8 #include "content/common/service_worker/service_worker_provider.mojom.h"
9 9
10 namespace mojo { 10 namespace mojo {
(...skipping 13 matching lines...) Expand all
24 static content::ServiceWorkerProviderType type( 24 static content::ServiceWorkerProviderType type(
25 const content::ServiceWorkerProviderHostInfo& info) { 25 const content::ServiceWorkerProviderHostInfo& info) {
26 return info.type; 26 return info.type;
27 } 27 }
28 28
29 static bool is_parent_frame_secure( 29 static bool is_parent_frame_secure(
30 const content::ServiceWorkerProviderHostInfo& info) { 30 const content::ServiceWorkerProviderHostInfo& info) {
31 return info.is_parent_frame_secure; 31 return info.is_parent_frame_secure;
32 } 32 }
33 33
34 static content::mojom::ServiceWorkerProviderHostAssociatedRequest&
35 host_request(content::ServiceWorkerProviderHostInfo& info) {
36 return info.host_request;
37 }
38
39 static content::mojom::ServiceWorkerProviderAssociatedPtrInfo&
40 client_ptr_info(content::ServiceWorkerProviderHostInfo& info) {
41 return info.client_ptr_info;
42 }
43
34 static bool Read(content::mojom::ServiceWorkerProviderHostInfoDataView in, 44 static bool Read(content::mojom::ServiceWorkerProviderHostInfoDataView in,
35 content::ServiceWorkerProviderHostInfo* out); 45 content::ServiceWorkerProviderHostInfo* out);
36 }; 46 };
37 47
38 } // namespace mojo 48 } // namespace mojo
39 49
40 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_STRUCT_TRAITS_H _ 50 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_STRUCT_TRAITS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698