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 #include "content/worker/worker_thread.h" | 5 #include "content/worker/worker_thread.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/threading/thread_local.h" | 9 #include "base/threading/thread_local.h" |
10 #include "content/child/appcache_dispatcher.h" | 10 #include "content/child/appcache_dispatcher.h" |
| 11 #include "content/child/db_message_filter.h" |
11 #include "content/child/indexed_db/indexed_db_message_filter.h" | 12 #include "content/child/indexed_db/indexed_db_message_filter.h" |
12 #include "content/child/runtime_features.h" | 13 #include "content/child/runtime_features.h" |
13 #include "content/child/web_database_observer_impl.h" | 14 #include "content/child/web_database_observer_impl.h" |
14 #include "content/common/db_message_filter.h" | |
15 #include "content/common/worker_messages.h" | 15 #include "content/common/worker_messages.h" |
16 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
17 #include "content/worker/websharedworker_stub.h" | 17 #include "content/worker/websharedworker_stub.h" |
18 #include "content/worker/worker_webkitplatformsupport_impl.h" | 18 #include "content/worker/worker_webkitplatformsupport_impl.h" |
19 #include "ipc/ipc_sync_channel.h" | 19 #include "ipc/ipc_sync_channel.h" |
| 20 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
20 #include "third_party/WebKit/public/web/WebDatabase.h" | 21 #include "third_party/WebKit/public/web/WebDatabase.h" |
21 #include "third_party/WebKit/public/web/WebKit.h" | 22 #include "third_party/WebKit/public/web/WebKit.h" |
22 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 23 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
23 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | |
24 #include "webkit/glue/webkit_glue.h" | 24 #include "webkit/glue/webkit_glue.h" |
25 #include "webkit/renderer/appcache/appcache_frontend_impl.h" | 25 #include "webkit/renderer/appcache/appcache_frontend_impl.h" |
26 | 26 |
27 using WebKit::WebRuntimeFeatures; | 27 using WebKit::WebRuntimeFeatures; |
28 | 28 |
29 namespace content { | 29 namespace content { |
30 | 30 |
31 static base::LazyInstance<base::ThreadLocalPointer<WorkerThread> > lazy_tls = | 31 static base::LazyInstance<base::ThreadLocalPointer<WorkerThread> > lazy_tls = |
32 LAZY_INSTANCE_INITIALIZER; | 32 LAZY_INSTANCE_INITIALIZER; |
33 | 33 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 void WorkerThread::RemoveWorkerStub(WebSharedWorkerStub* stub) { | 109 void WorkerThread::RemoveWorkerStub(WebSharedWorkerStub* stub) { |
110 worker_stubs_.erase(stub); | 110 worker_stubs_.erase(stub); |
111 } | 111 } |
112 | 112 |
113 void WorkerThread::AddWorkerStub(WebSharedWorkerStub* stub) { | 113 void WorkerThread::AddWorkerStub(WebSharedWorkerStub* stub) { |
114 worker_stubs_.insert(stub); | 114 worker_stubs_.insert(stub); |
115 } | 115 } |
116 | 116 |
117 } // namespace content | 117 } // namespace content |
OLD | NEW |