Chromium Code Reviews| Index: content/browser/service_worker/service_worker_test_utils.h |
| diff --git a/content/browser/service_worker/service_worker_test_utils.h b/content/browser/service_worker/service_worker_test_utils.h |
| index 279faf37c1c6e87ae7f6db350dbee76ad29fee9a..9a96a08151ae47f0a95b7311ce85e6f9a80d3aab 100644 |
| --- a/content/browser/service_worker/service_worker_test_utils.h |
| +++ b/content/browser/service_worker/service_worker_test_utils.h |
| @@ -11,6 +11,7 @@ |
| #include "base/callback.h" |
| #include "base/command_line.h" |
| #include "base/memory/weak_ptr.h" |
| +#include "content/common/service_worker/service_worker_provider_interfaces.mojom.h" |
| #include "content/public/browser/browser_thread.h" |
| #include "content/public/common/content_switches.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| @@ -46,25 +47,42 @@ base::Callback<void(Arg)> CreateReceiverOnCurrentThread( |
| return base::Bind(&ReceiveResult<Arg>, id, quit, out); |
| } |
|
falken
2017/05/18 04:13:09
please add a class level comment
shimazu
2017/05/19 08:31:06
Done.
|
| +class ServiceWorkerRemoteProviderEndpoint { |
|
falken
2017/05/18 04:13:09
seems this should be a struct?
shimazu
2017/05/19 08:31:06
Done.
|
| + public: |
| + ServiceWorkerRemoteProviderEndpoint(); |
| + ServiceWorkerRemoteProviderEndpoint( |
| + ServiceWorkerRemoteProviderEndpoint&& other); |
| + ~ServiceWorkerRemoteProviderEndpoint(); |
| + |
| + mojom::ServiceWorkerProviderHostAssociatedPtr host_ptr; |
| + mojom::ServiceWorkerProviderAssociatedRequest client_request; |
|
falken
2017/05/18 04:13:09
Can you comment what these two members do?
shimazu
2017/05/19 08:31:06
Done.
|
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRemoteProviderEndpoint); |
| +}; |
| + |
| std::unique_ptr<ServiceWorkerProviderHost> CreateProviderHostForWindow( |
| int process_id, |
| int provider_id, |
| bool is_parent_frame_secure, |
| - base::WeakPtr<ServiceWorkerContextCore> context); |
| + base::WeakPtr<ServiceWorkerContextCore> context, |
| + ServiceWorkerRemoteProviderEndpoint* output_endpoint); |
| std::unique_ptr<ServiceWorkerProviderHost> |
| CreateProviderHostForServiceWorkerContext( |
| int process_id, |
| int provider_id, |
| bool is_parent_frame_secure, |
| - base::WeakPtr<ServiceWorkerContextCore> context); |
| + base::WeakPtr<ServiceWorkerContextCore> context, |
| + ServiceWorkerRemoteProviderEndpoint* output_endpoint); |
| std::unique_ptr<ServiceWorkerProviderHost> CreateProviderHostWithDispatcherHost( |
| int process_id, |
| int provider_id, |
| base::WeakPtr<ServiceWorkerContextCore> context, |
| int route_id, |
| - ServiceWorkerDispatcherHost* dispatcher_host); |
| + ServiceWorkerDispatcherHost* dispatcher_host, |
| + ServiceWorkerRemoteProviderEndpoint* output_endpoint); |
| } // namespace content |