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

Unified Diff: chrome/browser/worker_host/worker_service.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/browser/worker_host/worker_process_host.cc ('k') | chrome/browser/worker_host/worker_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/worker_host/worker_service.h
diff --git a/chrome/browser/worker_host/worker_service.h b/chrome/browser/worker_host/worker_service.h
index 5db6eee24b7a6c2b972ea29a818a8b4bc5787bba..eec45a05c5673bb095140c4debd4e7751adc8eef 100644
--- a/chrome/browser/worker_host/worker_service.h
+++ b/chrome/browser/worker_host/worker_service.h
@@ -30,6 +30,7 @@ class WorkerService : public NotificationObserver {
bool is_shared,
bool is_off_the_record,
const string16& name,
+ unsigned long long document_id,
int renderer_pid,
int render_view_route_id,
IPC::Message::Sender* sender,
@@ -43,6 +44,8 @@ class WorkerService : public NotificationObserver {
const string16& name,
bool off_the_record,
unsigned long long document_id,
+ int renderer_pid,
+ int render_view_route_id,
IPC::Message::Sender* sender,
int sender_route_id,
bool* url_mismatch);
@@ -101,6 +104,12 @@ class WorkerService : public NotificationObserver {
bool CanCreateWorkerProcess(
const WorkerProcessHost::WorkerInstance& instance);
+ // Checks if the tab associated with the passed RenderView can create a
+ // worker process based on the process limit when we're using a strategy of
+ // one worker per process.
+ bool TabCanCreateWorkerProcess(
+ int renderer_id, int render_view_route_id, bool* hit_total_worker_limit);
+
// NotificationObserver interface.
void Observe(NotificationType type,
const NotificationSource& source,
« no previous file with comments | « chrome/browser/worker_host/worker_process_host.cc ('k') | chrome/browser/worker_host/worker_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698