| 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_HOST_INFO_H_ | 5 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_ |
| 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_ | 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_ |
| 7 | 7 |
| 8 #include "content/common/service_worker/service_worker_types.h" | 8 #include "content/common/service_worker/service_worker_types.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 // Container object to create a ServiceWorkerProviderHost. |
| 12 struct CONTENT_EXPORT ServiceWorkerProviderHostInfo { | 13 struct CONTENT_EXPORT ServiceWorkerProviderHostInfo { |
| 13 ServiceWorkerProviderHostInfo(); | 14 ServiceWorkerProviderHostInfo(); |
| 14 ServiceWorkerProviderHostInfo(ServiceWorkerProviderHostInfo&& other); | 15 ServiceWorkerProviderHostInfo(ServiceWorkerProviderHostInfo&& other); |
| 15 ServiceWorkerProviderHostInfo(int provider_id, | 16 ServiceWorkerProviderHostInfo(int provider_id, |
| 16 int route_id, | 17 int route_id, |
| 17 ServiceWorkerProviderType type, | 18 ServiceWorkerProviderType type, |
| 18 bool is_parent_frame_secure); | 19 bool is_parent_frame_secure); |
| 19 ~ServiceWorkerProviderHostInfo(); | 20 ~ServiceWorkerProviderHostInfo(); |
| 20 | 21 |
| 21 // This is unique within its child process except for PlzNavigate. When | 22 // This is unique within its child process except for PlzNavigate. When |
| (...skipping 22 matching lines...) Expand all Loading... |
| 44 // is_parent_frame_secure| is true. | 45 // is_parent_frame_secure| is true. |
| 45 bool is_parent_frame_secure; | 46 bool is_parent_frame_secure; |
| 46 | 47 |
| 47 private: | 48 private: |
| 48 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHostInfo); | 49 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHostInfo); |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 } // namespace content | 52 } // namespace content |
| 52 | 53 |
| 53 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_ | 54 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_ |
| OLD | NEW |