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/appcache_dispatcher.h" | 10 #include "content/child/appcache/appcache_dispatcher.h" |
11 #include "content/child/appcache/appcache_frontend_impl.h" | 11 #include "content/child/appcache/appcache_frontend_impl.h" |
12 #include "content/child/db_message_filter.h" | 12 #include "content/child/db_message_filter.h" |
13 #include "content/child/indexed_db/indexed_db_message_filter.h" | 13 #include "content/child/indexed_db/indexed_db_message_filter.h" |
14 #include "content/child/runtime_features.h" | 14 #include "content/child/runtime_features.h" |
15 #include "content/child/web_database_observer_impl.h" | 15 #include "content/child/web_database_observer_impl.h" |
16 #include "content/common/child_process_messages.h" | 16 #include "content/common/child_process_messages.h" |
17 #include "content/common/worker_messages.h" | 17 #include "content/common/worker_messages.h" |
18 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
19 #include "content/worker/websharedworker_stub.h" | 19 #include "content/worker/websharedworker_stub.h" |
20 #include "content/worker/worker_webkitplatformsupport_impl.h" | 20 #include "content/worker/worker_webkitplatformsupport_impl.h" |
21 #include "ipc/ipc_sync_channel.h" | 21 #include "ipc/ipc_sync_channel.h" |
22 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | 22 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
23 #include "third_party/WebKit/public/web/WebDatabase.h" | 23 #include "third_party/WebKit/public/web/WebDatabase.h" |
24 #include "third_party/WebKit/public/web/WebKit.h" | 24 #include "third_party/WebKit/public/web/WebKit.h" |
25 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 25 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
26 #include "webkit/glue/webkit_glue.h" | |
27 | 26 |
28 using blink::WebRuntimeFeatures; | 27 using blink::WebRuntimeFeatures; |
29 | 28 |
30 namespace content { | 29 namespace content { |
31 | 30 |
32 static base::LazyInstance<base::ThreadLocalPointer<WorkerThread> > lazy_tls = | 31 static base::LazyInstance<base::ThreadLocalPointer<WorkerThread> > lazy_tls = |
33 LAZY_INSTANCE_INITIALIZER; | 32 LAZY_INSTANCE_INITIALIZER; |
34 | 33 |
35 WorkerThread::WorkerThread() { | 34 WorkerThread::WorkerThread() { |
36 lazy_tls.Pointer()->Set(this); | 35 lazy_tls.Pointer()->Set(this); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 128 |
130 void WorkerThread::RemoveWorkerStub(WebSharedWorkerStub* stub) { | 129 void WorkerThread::RemoveWorkerStub(WebSharedWorkerStub* stub) { |
131 worker_stubs_.erase(stub); | 130 worker_stubs_.erase(stub); |
132 } | 131 } |
133 | 132 |
134 void WorkerThread::AddWorkerStub(WebSharedWorkerStub* stub) { | 133 void WorkerThread::AddWorkerStub(WebSharedWorkerStub* stub) { |
135 worker_stubs_.insert(stub); | 134 worker_stubs_.insert(stub); |
136 } | 135 } |
137 | 136 |
138 } // namespace content | 137 } // namespace content |
OLD | NEW |