OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_WORKER_WORKER_THREAD_H_ | 5 #ifndef CONTENT_WORKER_WORKER_THREAD_H_ |
6 #define CONTENT_WORKER_WORKER_THREAD_H_ | 6 #define CONTENT_WORKER_WORKER_THREAD_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "content/common/child_thread.h" | 10 #include "content/common/child_thread.h" |
11 | 11 |
12 class AppCacheDispatcher; | 12 class AppCacheDispatcher; |
13 class DBMessageFilter; | 13 class DBMessageFilter; |
14 class IndexedDBMessageFilter; | 14 class IndexedDBMessageFilter; |
15 class WebDatabaseObserverImpl; | 15 class WebDatabaseObserverImpl; |
| 16 struct WorkerProcessMsg_CreateWorker_Params; |
| 17 |
| 18 namespace content { |
16 class WebSharedWorkerStub; | 19 class WebSharedWorkerStub; |
17 struct WorkerProcessMsg_CreateWorker_Params; | |
18 class WorkerWebKitPlatformSupportImpl; | 20 class WorkerWebKitPlatformSupportImpl; |
19 | 21 |
20 class WorkerThread : public ChildThread { | 22 class WorkerThread : public ChildThread { |
21 public: | 23 public: |
22 WorkerThread(); | 24 WorkerThread(); |
23 virtual ~WorkerThread(); | 25 virtual ~WorkerThread(); |
24 | 26 |
25 // Returns the one worker thread. | 27 // Returns the one worker thread. |
26 static WorkerThread* current(); | 28 static WorkerThread* current(); |
27 | 29 |
(...skipping 16 matching lines...) Expand all Loading... |
44 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 46 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
45 scoped_refptr<DBMessageFilter> db_message_filter_; | 47 scoped_refptr<DBMessageFilter> db_message_filter_; |
46 scoped_refptr<IndexedDBMessageFilter> indexed_db_message_filter_; | 48 scoped_refptr<IndexedDBMessageFilter> indexed_db_message_filter_; |
47 | 49 |
48 typedef std::set<WebSharedWorkerStub*> WorkerStubsList; | 50 typedef std::set<WebSharedWorkerStub*> WorkerStubsList; |
49 WorkerStubsList worker_stubs_; | 51 WorkerStubsList worker_stubs_; |
50 | 52 |
51 DISALLOW_COPY_AND_ASSIGN(WorkerThread); | 53 DISALLOW_COPY_AND_ASSIGN(WorkerThread); |
52 }; | 54 }; |
53 | 55 |
| 56 } // namespace content |
| 57 |
54 #endif // CONTENT_WORKER_WORKER_THREAD_H_ | 58 #endif // CONTENT_WORKER_WORKER_THREAD_H_ |
OLD | NEW |