| OLD | NEW |
| 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 Loading... |
| 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
_ |
| OLD | NEW |