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

Side by Side Diff: content/common/service_worker/service_worker_provider_host_info.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_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_provider_interfaces.mojom .h"
8 #include "content/common/service_worker/service_worker_types.h" 9 #include "content/common/service_worker/service_worker_types.h"
9 10
10 namespace content { 11 namespace content {
11 12
12 // Container object to create a ServiceWorkerProviderHost. 13 // Container object to create a ServiceWorkerProviderHost.
13 struct CONTENT_EXPORT ServiceWorkerProviderHostInfo { 14 struct CONTENT_EXPORT ServiceWorkerProviderHostInfo {
14 ServiceWorkerProviderHostInfo(); 15 ServiceWorkerProviderHostInfo();
15 ServiceWorkerProviderHostInfo(ServiceWorkerProviderHostInfo&& other); 16 ServiceWorkerProviderHostInfo(ServiceWorkerProviderHostInfo&& other);
17 ServiceWorkerProviderHostInfo(
18 ServiceWorkerProviderHostInfo&& other,
19 mojom::ServiceWorkerProviderHostAssociatedRequest host_request,
20 mojom::ServiceWorkerProviderAssociatedPtrInfo client_ptr_info);
16 ServiceWorkerProviderHostInfo(int provider_id, 21 ServiceWorkerProviderHostInfo(int provider_id,
17 int route_id, 22 int route_id,
18 ServiceWorkerProviderType type, 23 ServiceWorkerProviderType type,
19 bool is_parent_frame_secure); 24 bool is_parent_frame_secure);
20 ~ServiceWorkerProviderHostInfo(); 25 ~ServiceWorkerProviderHostInfo();
21 26
22 ServiceWorkerProviderHostInfo& operator=( 27 ServiceWorkerProviderHostInfo& operator=(
23 ServiceWorkerProviderHostInfo&& other); 28 ServiceWorkerProviderHostInfo&& other);
24 29
25 // This is unique within its child process except for PlzNavigate. When 30 // This is unique within its child process except for PlzNavigate. When
(...skipping 15 matching lines...) Expand all
41 // whose parent frame is not secure from the point of view of the document; 46 // whose parent frame is not secure from the point of view of the document;
42 // that is, blink::WebFrame::canHaveSecureChild() returns false. This doesn't 47 // that is, blink::WebFrame::canHaveSecureChild() returns false. This doesn't
43 // mean the document is necessarily an insecure context, because the document 48 // mean the document is necessarily an insecure context, because the document
44 // may have a URL whose scheme is granted an exception that allows bypassing 49 // may have a URL whose scheme is granted an exception that allows bypassing
45 // the ancestor secure context check. See the comment in 50 // the ancestor secure context check. See the comment in
46 // blink::Document::isSecureContextImpl for more details. If the provider is 51 // blink::Document::isSecureContextImpl for more details. If the provider is
47 // not created for a document, or the document does not have a parent frame, 52 // not created for a document, or the document does not have a parent frame,
48 // is_parent_frame_secure| is true. 53 // is_parent_frame_secure| is true.
49 bool is_parent_frame_secure; 54 bool is_parent_frame_secure;
50 55
56 // Mojo endpoint to send a message from the renderer to the browser. This
57 // will be associated with ServiceWorkerDisptacherHost. |host_request| should
58 // be valid when ServiceWorkerProviderHostInfo is passed to any Mojo methods.
59 // After used to create the ServiceWorkerProviderHost, this will be invalid.
60 mojom::ServiceWorkerProviderHostAssociatedRequest host_request;
61
62 // Mojo endpoint to send a message from the browser to the renderer. This
63 // will be associated with ServiceWorkerDisptacherHost. |client_ptr_info|
64 // should be valid when ServiceWorkerProviderHostInfo is passed to any Mojo
65 // methods.
66 // After used to create the ServiceWorkerProviderHost, this will be invalid.
67 mojom::ServiceWorkerProviderAssociatedPtrInfo client_ptr_info;
68
51 private: 69 private:
52 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHostInfo); 70 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHostInfo);
53 }; 71 };
54 72
55 } // namespace content 73 } // namespace content
56 74
57 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_ 75 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698