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

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

Issue 118103002: Add IPC stubs between browser and ServiceWorker's worker context in the child process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/embedded_worker_instance.h
diff --git a/content/browser/service_worker/embedded_worker_instance.h b/content/browser/service_worker/embedded_worker_instance.h
index fb0fe19bb6cff3b6b4a566dc96d1c789df62dc56..5a992a2d4ff7528f0793fb1f0878b7cb553871c7 100644
--- a/content/browser/service_worker/embedded_worker_instance.h
+++ b/content/browser/service_worker/embedded_worker_instance.h
@@ -19,6 +19,7 @@ class GURL;
namespace content {
class EmbeddedWorkerRegistry;
+struct ServiceWorkerFetchRequest;
// This gives an interface to control one EmbeddedWorker instance, which
// may be 'in-waiting' or running in one of the child processes added by
@@ -47,6 +48,11 @@ class CONTENT_EXPORT EmbeddedWorkerInstance {
// IPC couldn't be sent to the worker.
bool Stop();
+ // Sends |request| to the embedded worker running in the child process.
+ // This returns false if sending IPC fails.
+ // It is invalid to call this while the worker is not in RUNNING status.
+ bool SendFetchRequest(const ServiceWorkerFetchRequest& request);
+
// Add or remove |process_id| to the internal process set where this
// worker can be started.
void AddProcessReference(int process_id);

Powered by Google App Engine
This is Rietveld 408576698