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

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

Issue 342068: Third patch in getting rid of caching MessageLoop pointers and always using C... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
===================================================================
--- chrome/browser/worker_host/worker_service.h (revision 30650)
+++ chrome/browser/worker_host/worker_service.h (working copy)
@@ -14,8 +14,6 @@
#include "googleurl/src/gurl.h"
#include "ipc/ipc_message.h"
-
-class MessageLoop;
class WorkerProcessHost;
class ResourceDispatcherHost;
@@ -25,7 +23,7 @@
static WorkerService* GetInstance();
// Initialize the WorkerService. OK to be called multiple times.
- void Initialize(ResourceDispatcherHost* rdh, MessageLoop* ui_loop);
+ void Initialize(ResourceDispatcherHost* rdh);
// Creates a dedicated worker. Returns true on success.
bool CreateDedicatedWorker(const GURL &url,
@@ -42,8 +40,6 @@
// forwarded to the worker process.
void ForwardMessage(const IPC::Message& message, int sender_id);
- MessageLoop* ui_loop() { return ui_loop_; }
-
int next_worker_route_id() { return ++next_worker_route_id_; }
// TODO(dimich): This code assumes there is 1 worker per worker process, which
@@ -95,7 +91,6 @@
NotificationRegistrar registrar_;
int next_worker_route_id_;
ResourceDispatcherHost* resource_dispatcher_host_;
- MessageLoop* ui_loop_;
WorkerProcessHost::Instances queued_workers_;
« 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