Index: content/browser/worker_host/worker_service_impl.h |
diff --git a/content/browser/worker_host/worker_service_impl.h b/content/browser/worker_host/worker_service_impl.h |
index 9da0d19cd2167d866f71efdb3451a0fe08909487..4eca5b458e991f5bffd259ffaf22807147917694 100644 |
--- a/content/browser/worker_host/worker_service_impl.h |
+++ b/content/browser/worker_host/worker_service_impl.h |
@@ -18,6 +18,10 @@ |
class GURL; |
struct ViewHostMsg_CreateWorker_Params; |
+namespace net { |
+class IOBuffer; |
+} |
+ |
namespace content { |
class ResourceContext; |
class WorkerServiceObserver; |
@@ -78,6 +82,19 @@ class CONTENT_EXPORT WorkerServiceImpl |
void NotifyWorkerProcessCreated(); |
+ // Support for worker-like contexts that are not actually WebSharedWorkers |
+ // and don't have associated sets of documents. Outside parties do not |
+ // open message ports to these contexts, and connected documents |
+ // do not determine their lifetimes. |
+ int CreateAndStartEmbeddedWorker( |
+ ResourceContext* resource_context, |
+ const WorkerStoragePartition& worker_partition, |
+ const GURL& url, |
+ const std::string& raw_handler_source, |
+ int64 associated_appcache_id); |
+ bool SendToEmbeddedWorker(int worker_route_id, IPC::Message* message); |
+ void TerminateEmbeddedWorker(int worker_route_id); |
+ |
// Used when we run each worker in a separate process. |
static const int kMaxWorkersWhenSeparate; |
static const int kMaxWorkersPerTabWhenSeparate; |