| 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,
|
|
|