OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_WORKER_HOST__WORKER_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_WORKER_HOST__WORKER_SERVICE_H_ |
6 #define CHROME_BROWSER_WORKER_HOST__WORKER_SERVICE_H_ | 6 #define CHROME_BROWSER_WORKER_HOST__WORKER_SERVICE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/singleton.h" | 11 #include "base/singleton.h" |
12 #include "chrome/browser/worker_host/worker_process_host.h" | 12 #include "chrome/browser/worker_host/worker_process_host.h" |
13 #include "chrome/common/ipc_message.h" | |
14 #include "chrome/common/notification_registrar.h" | 13 #include "chrome/common/notification_registrar.h" |
15 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 15 #include "ipc/ipc_message.h" |
16 | 16 |
17 | 17 |
18 class MessageLoop; | 18 class MessageLoop; |
19 class WorkerProcessHost; | 19 class WorkerProcessHost; |
20 class ResourceDispatcherHost; | 20 class ResourceDispatcherHost; |
21 | 21 |
22 class WorkerService : public NotificationObserver { | 22 class WorkerService : public NotificationObserver { |
23 public: | 23 public: |
24 // Returns the WorkerService singleton. | 24 // Returns the WorkerService singleton. |
25 static WorkerService* GetInstance(); | 25 static WorkerService* GetInstance(); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 int next_worker_route_id_; | 90 int next_worker_route_id_; |
91 ResourceDispatcherHost* resource_dispatcher_host_; | 91 ResourceDispatcherHost* resource_dispatcher_host_; |
92 MessageLoop* ui_loop_; | 92 MessageLoop* ui_loop_; |
93 | 93 |
94 WorkerProcessHost::Instances queued_workers_; | 94 WorkerProcessHost::Instances queued_workers_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(WorkerService); | 96 DISALLOW_COPY_AND_ASSIGN(WorkerService); |
97 }; | 97 }; |
98 | 98 |
99 #endif // CHROME_BROWSER_WORKER_HOST__WORKER_SERVICE_H_ | 99 #endif // CHROME_BROWSER_WORKER_HOST__WORKER_SERVICE_H_ |
OLD | NEW |