| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| 11 #include "content/common/child_thread.h" | 11 #include "content/common/child_thread.h" |
| 12 | 12 |
| 13 class AppCacheDispatcher; | 13 class AppCacheDispatcher; |
| 14 class DBMessageFilter; | 14 class DBMessageFilter; |
| 15 class IndexedDBMessageFilter; |
| 15 class WebDatabaseObserverImpl; | 16 class WebDatabaseObserverImpl; |
| 16 class WebSharedWorkerStub; | 17 class WebSharedWorkerStub; |
| 17 struct WorkerProcessMsg_CreateWorker_Params; | 18 struct WorkerProcessMsg_CreateWorker_Params; |
| 18 class WorkerWebKitPlatformSupportImpl; | 19 class WorkerWebKitPlatformSupportImpl; |
| 19 | 20 |
| 20 class WorkerThread : public ChildThread { | 21 class WorkerThread : public ChildThread { |
| 21 public: | 22 public: |
| 22 WorkerThread(); | 23 WorkerThread(); |
| 23 virtual ~WorkerThread(); | 24 virtual ~WorkerThread(); |
| 24 | 25 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 36 private: | 37 private: |
| 37 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 38 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 38 virtual void OnChannelError() OVERRIDE; | 39 virtual void OnChannelError() OVERRIDE; |
| 39 | 40 |
| 40 void OnCreateWorker(const WorkerProcessMsg_CreateWorker_Params& params); | 41 void OnCreateWorker(const WorkerProcessMsg_CreateWorker_Params& params); |
| 41 | 42 |
| 42 scoped_ptr<WorkerWebKitPlatformSupportImpl> webkit_platform_support_; | 43 scoped_ptr<WorkerWebKitPlatformSupportImpl> webkit_platform_support_; |
| 43 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 44 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
| 44 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 45 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
| 45 scoped_refptr<DBMessageFilter> db_message_filter_; | 46 scoped_refptr<DBMessageFilter> db_message_filter_; |
| 47 scoped_refptr<IndexedDBMessageFilter> indexed_db_message_filter_; |
| 46 | 48 |
| 47 typedef std::set<WebSharedWorkerStub*> WorkerStubsList; | 49 typedef std::set<WebSharedWorkerStub*> WorkerStubsList; |
| 48 WorkerStubsList worker_stubs_; | 50 WorkerStubsList worker_stubs_; |
| 49 | 51 |
| 50 DISALLOW_COPY_AND_ASSIGN(WorkerThread); | 52 DISALLOW_COPY_AND_ASSIGN(WorkerThread); |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 #endif // CONTENT_WORKER_WORKER_THREAD_H_ | 55 #endif // CONTENT_WORKER_WORKER_THREAD_H_ |
| OLD | NEW |