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 |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 // Invoked from stub constructors/destructors. Stubs own themselves. | 28 // Invoked from stub constructors/destructors. Stubs own themselves. |
29 void AddWorkerStub(WebSharedWorkerStub* stub); | 29 void AddWorkerStub(WebSharedWorkerStub* stub); |
30 void RemoveWorkerStub(WebSharedWorkerStub* stub); | 30 void RemoveWorkerStub(WebSharedWorkerStub* stub); |
31 | 31 |
32 AppCacheDispatcher* appcache_dispatcher() { | 32 AppCacheDispatcher* appcache_dispatcher() { |
33 return appcache_dispatcher_.get(); | 33 return appcache_dispatcher_.get(); |
34 } | 34 } |
35 | 35 |
36 private: | 36 private: |
37 virtual bool OnControlMessageReceived(const IPC::Message& msg); | 37 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
38 virtual void OnChannelError(); | 38 virtual void OnChannelError() OVERRIDE; |
39 | 39 |
40 void OnCreateWorker(const WorkerProcessMsg_CreateWorker_Params& params); | 40 void OnCreateWorker(const WorkerProcessMsg_CreateWorker_Params& params); |
41 | 41 |
42 scoped_ptr<WorkerWebKitPlatformSupportImpl> webkit_platform_support_; | 42 scoped_ptr<WorkerWebKitPlatformSupportImpl> webkit_platform_support_; |
43 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; | 43 scoped_ptr<AppCacheDispatcher> appcache_dispatcher_; |
44 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 44 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
45 scoped_refptr<DBMessageFilter> db_message_filter_; | 45 scoped_refptr<DBMessageFilter> db_message_filter_; |
46 | 46 |
47 typedef std::set<WebSharedWorkerStub*> WorkerStubsList; | 47 typedef std::set<WebSharedWorkerStub*> WorkerStubsList; |
48 WorkerStubsList worker_stubs_; | 48 WorkerStubsList worker_stubs_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(WorkerThread); | 50 DISALLOW_COPY_AND_ASSIGN(WorkerThread); |
51 }; | 51 }; |
52 | 52 |
53 #endif // CONTENT_WORKER_WORKER_THREAD_H_ | 53 #endif // CONTENT_WORKER_WORKER_THREAD_H_ |
OLD | NEW |