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

Unified Diff: chrome/browser/worker_host/worker_process_host.h

Issue 580007: Changed CreateWorker to coalesce any matching queued shared workers when a (Closed)
Patch Set: Now supports multiple queued instances of one shared worker. Created 10 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/worker_host/worker_process_host.h
diff --git a/chrome/browser/worker_host/worker_process_host.h b/chrome/browser/worker_host/worker_process_host.h
index b5a8d74f3c0b98e62f50a54194d98b8f897204ae..bed53b5e67a2c4ed0685f25c24e9419f3f077ecb 100644
--- a/chrome/browser/worker_host/worker_process_host.h
+++ b/chrome/browser/worker_host/worker_process_host.h
@@ -42,6 +42,9 @@ class WorkerProcessHost : public ChildProcessHost {
// Returns the single sender (must only be one).
SenderInfo GetSender() const;
+ typedef std::list<SenderInfo> SenderList;
+ const SenderList& senders() const { return senders_; }
+
// Checks if this WorkerInstance matches the passed url/name params
// (per the comparison algorithm in the WebWorkers spec). This API only
// applies to shared workers.
@@ -69,7 +72,6 @@ class WorkerProcessHost : public ChildProcessHost {
private:
// Set of all senders (clients) associated with this worker.
- typedef std::list<SenderInfo> SenderList;
GURL url_;
bool shared_;
bool off_the_record_;
« no previous file with comments | « no previous file | chrome/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698