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

Unified Diff: chrome/renderer/webworker_base.h

Issue 509016: Refactored code to allow associating workers with multiple renderers. (Closed)
Patch Set: Disabled overly-aggressive assertion in ResourceDispatcherHost. Created 10 years, 11 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 | « chrome/renderer/websharedworker_proxy.cc ('k') | chrome/renderer/webworker_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webworker_base.h
diff --git a/chrome/renderer/webworker_base.h b/chrome/renderer/webworker_base.h
index fe5beccafd194368349aca34be9c266c15ebe46d..6c031c89fb22d35b66ab359985923572454b5b82 100644
--- a/chrome/renderer/webworker_base.h
+++ b/chrome/renderer/webworker_base.h
@@ -20,6 +20,7 @@ class GURL;
class WebWorkerBase : public IPC::Channel::Listener {
public:
WebWorkerBase(ChildThread* child_thread,
+ unsigned long long document_id,
int route_id,
int render_view_route_id);
@@ -61,6 +62,10 @@ class WebWorkerBase : public IPC::Channel::Listener {
ChildThread* child_thread_;
private:
+ // ID of our parent document (used to shutdown workers when the parent
+ // document is detached).
+ unsigned long long document_id_;
+
// Stores messages that were sent before the StartWorkerContext message.
std::vector<IPC::Message*> queued_messages_;
};
« no previous file with comments | « chrome/renderer/websharedworker_proxy.cc ('k') | chrome/renderer/webworker_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698