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

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

Issue 2902823003: Revert of ServiceWorker: Keep info as a member of ServiceWorkerProviderHost (Closed)
Patch Set: Created 3 years, 7 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_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.
13 struct CONTENT_EXPORT ServiceWorkerProviderHostInfo { 12 struct CONTENT_EXPORT ServiceWorkerProviderHostInfo {
14 ServiceWorkerProviderHostInfo(); 13 ServiceWorkerProviderHostInfo();
15 ServiceWorkerProviderHostInfo(ServiceWorkerProviderHostInfo&& other); 14 ServiceWorkerProviderHostInfo(ServiceWorkerProviderHostInfo&& other);
16 ServiceWorkerProviderHostInfo(int provider_id, 15 ServiceWorkerProviderHostInfo(int provider_id,
17 int route_id, 16 int route_id,
18 ServiceWorkerProviderType type, 17 ServiceWorkerProviderType type,
19 bool is_parent_frame_secure); 18 bool is_parent_frame_secure);
20 ~ServiceWorkerProviderHostInfo(); 19 ~ServiceWorkerProviderHostInfo();
21 20
22 // This is unique within its child process except for PlzNavigate. When 21 // This is unique within its child process except for PlzNavigate. When
(...skipping 22 matching lines...) Expand all
45 // is_parent_frame_secure| is true. 44 // is_parent_frame_secure| is true.
46 bool is_parent_frame_secure; 45 bool is_parent_frame_secure;
47 46
48 private: 47 private:
49 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHostInfo); 48 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHostInfo);
50 }; 49 };
51 50
52 } // namespace content 51 } // namespace content
53 52
54 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_ 53 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698