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/browser/worker_host/worker_process_host.h" | 5 #include "content/browser/worker_host/worker_process_host.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 260 |
261 SocketStreamDispatcherHost* socket_stream_dispatcher_host = | 261 SocketStreamDispatcherHost* socket_stream_dispatcher_host = |
262 new SocketStreamDispatcherHost( | 262 new SocketStreamDispatcherHost( |
263 render_process_id, | 263 render_process_id, |
264 request_context_callback, | 264 request_context_callback, |
265 resource_context_); | 265 resource_context_); |
266 socket_stream_dispatcher_host_ = socket_stream_dispatcher_host; | 266 socket_stream_dispatcher_host_ = socket_stream_dispatcher_host; |
267 process_->AddFilter(socket_stream_dispatcher_host); | 267 process_->AddFilter(socket_stream_dispatcher_host); |
268 process_->AddFilter(new WorkerDevToolsMessageFilter(process_->GetData().id)); | 268 process_->AddFilter(new WorkerDevToolsMessageFilter(process_->GetData().id)); |
269 process_->AddFilter( | 269 process_->AddFilter( |
270 new IndexedDBDispatcherHost(partition_.indexed_db_context())); | 270 new IndexedDBDispatcherHost(process_->GetData().id, |
| 271 url_request_context, |
| 272 partition_.indexed_db_context(), |
| 273 blob_storage_context)); |
271 } | 274 } |
272 | 275 |
273 void WorkerProcessHost::CreateWorker(const WorkerInstance& instance) { | 276 void WorkerProcessHost::CreateWorker(const WorkerInstance& instance) { |
274 ChildProcessSecurityPolicyImpl::GetInstance()->GrantRequestURL( | 277 ChildProcessSecurityPolicyImpl::GetInstance()->GrantRequestURL( |
275 process_->GetData().id, instance.url()); | 278 process_->GetData().id, instance.url()); |
276 | 279 |
277 instances_.push_back(instance); | 280 instances_.push_back(instance); |
278 | 281 |
279 WorkerProcessMsg_CreateWorker_Params params; | 282 WorkerProcessMsg_CreateWorker_Params params; |
280 params.url = instance.url(); | 283 params.url = instance.url(); |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 return false; | 703 return false; |
701 } | 704 } |
702 | 705 |
703 WorkerProcessHost::WorkerInstance::FilterInfo | 706 WorkerProcessHost::WorkerInstance::FilterInfo |
704 WorkerProcessHost::WorkerInstance::GetFilter() const { | 707 WorkerProcessHost::WorkerInstance::GetFilter() const { |
705 DCHECK(NumFilters() == 1); | 708 DCHECK(NumFilters() == 1); |
706 return *filters_.begin(); | 709 return *filters_.begin(); |
707 } | 710 } |
708 | 711 |
709 } // namespace content | 712 } // namespace content |
OLD | NEW |