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 467eaf0392236a805363bd5ffcf32854a898693b..f26936ba805ebc087be45edf9e00f374261af0ed 100644 |
--- a/content/browser/service_worker/service_worker_test_utils.h |
+++ b/content/browser/service_worker/service_worker_test_utils.h |
@@ -14,6 +14,10 @@ |
namespace content { |
+class ServiceWorkerContextCore; |
+class ServiceWorkerDispatcherHost; |
+class ServiceWorkerProviderHost; |
+ |
template <typename Arg> |
void ReceiveResult(BrowserThread::ID run_quit_thread, |
const base::Closure& quit, |
@@ -39,6 +43,26 @@ base::Callback<void(Arg)> CreateReceiverOnCurrentThread( |
return base::Bind(&ReceiveResult<Arg>, id, quit, out); |
} |
+std::unique_ptr<ServiceWorkerProviderHost> CreateProviderHostForWindow( |
dcheng
2017/02/14 08:47:46
#include <memory> for unique_ptr
shimazu
2017/02/15 02:24:18
Done.
|
+ int process_id, |
+ int provider_id, |
+ bool is_parent_frame_secure, |
+ base::WeakPtr<ServiceWorkerContextCore> context); |
dcheng
2017/02/14 08:47:46
#include "base/memory/weak_ptr.h" for WeakPtr
shimazu
2017/02/15 02:24:18
Done.
|
+ |
+std::unique_ptr<ServiceWorkerProviderHost> |
+CreateProviderHostForServiceWorkerContext( |
+ int process_id, |
+ int provider_id, |
+ bool is_parent_frame_secure, |
+ base::WeakPtr<ServiceWorkerContextCore> context); |
+ |
+std::unique_ptr<ServiceWorkerProviderHost> CreateProviderHostWithDispatcherHost( |
+ int process_id, |
+ int provider_id, |
+ base::WeakPtr<ServiceWorkerContextCore> context, |
+ int route_id, |
+ ServiceWorkerDispatcherHost* dispatcher_host); |
+ |
} // namespace content |
#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_TEST_UTILS_H_ |