| 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; | |
| 13 class DBMessageFilter; | 12 class DBMessageFilter; |
| 14 class IndexedDBMessageFilter; | |
| 15 class WebDatabaseObserverImpl; | 13 class WebDatabaseObserverImpl; |
| 16 struct WorkerProcessMsg_CreateWorker_Params; | 14 struct WorkerProcessMsg_CreateWorker_Params; |
| 17 | 15 |
| 18 namespace content { | 16 namespace content { |
| 17 class AppCacheDispatcher; |
| 18 class IndexedDBMessageFilter; |
| 19 class WebSharedWorkerStub; | 19 class WebSharedWorkerStub; |
| 20 class WorkerWebKitPlatformSupportImpl; | 20 class WorkerWebKitPlatformSupportImpl; |
| 21 | 21 |
| 22 class WorkerThread : public ChildThread { | 22 class WorkerThread : public ChildThread { |
| 23 public: | 23 public: |
| 24 WorkerThread(); | 24 WorkerThread(); |
| 25 virtual ~WorkerThread(); | 25 virtual ~WorkerThread(); |
| 26 | 26 |
| 27 // Returns the one worker thread. | 27 // Returns the one worker thread. |
| 28 static WorkerThread* current(); | 28 static WorkerThread* current(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 49 | 49 |
| 50 typedef std::set<WebSharedWorkerStub*> WorkerStubsList; | 50 typedef std::set<WebSharedWorkerStub*> WorkerStubsList; |
| 51 WorkerStubsList worker_stubs_; | 51 WorkerStubsList worker_stubs_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(WorkerThread); | 53 DISALLOW_COPY_AND_ASSIGN(WorkerThread); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace content | 56 } // namespace content |
| 57 | 57 |
| 58 #endif // CONTENT_WORKER_WORKER_THREAD_H_ | 58 #endif // CONTENT_WORKER_WORKER_THREAD_H_ |
| OLD | NEW |