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

Unified Diff: content/browser/service_worker/service_worker_context_wrapper.h

Issue 2118243002: [proof-of-concept] SW thread independent of the main thread Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_context_wrapper.h
diff --git a/content/browser/service_worker/service_worker_context_wrapper.h b/content/browser/service_worker/service_worker_context_wrapper.h
index 12c8b7220cd833464c774c76357a7bb6408573c5..33e0ea4fcfa81a76b6cf89265aa73affc64b4447 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -17,6 +17,8 @@
#include "content/browser/service_worker/service_worker_context_core.h"
#include "content/common/content_export.h"
#include "content/public/browser/service_worker_context.h"
+#include "net/url_request/url_request_context_getter_observer.h"
+#include "third_party/WebKit/public/platform/modules/serviceworker/service_worker.mojom.h"
namespace base {
class FilePath;
@@ -191,6 +193,10 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
// Must be called from the UI thread.
bool IsRunningNavigationHintTask(int render_process_id) const;
+ // Create a ServiceWorkerServiceImpl that is owned by this.
+ void CreateService(
+ mojo::InterfaceRequest<blink::mojom::ServiceWorkerService> request);
+
private:
friend class BackgroundSyncManagerTest;
friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>;

Powered by Google App Engine
This is Rietveld 408576698