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

Unified Diff: content/browser/worker_host/worker_service_impl.h

Issue 22314003: NavigationController prototype Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: NavController prototype - chrome side Created 7 years, 3 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/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;
« no previous file with comments | « content/browser/worker_host/worker_process_host.cc ('k') | content/browser/worker_host/worker_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698