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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 net::URLRequestContextGetter* url_request_context = | 212 net::URLRequestContextGetter* url_request_context = |
213 partition_.url_request_context(); | 213 partition_.url_request_context(); |
214 net::URLRequestContextGetter* media_url_request_context = | 214 net::URLRequestContextGetter* media_url_request_context = |
215 partition_.url_request_context(); | 215 partition_.url_request_context(); |
216 | 216 |
217 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( | 217 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( |
218 process_->GetData().id, PROCESS_TYPE_WORKER, resource_context_, | 218 process_->GetData().id, PROCESS_TYPE_WORKER, resource_context_, |
219 partition_.appcache_service(), | 219 partition_.appcache_service(), |
220 blob_storage_context, | 220 blob_storage_context, |
| 221 partition_.filesystem_context(), |
221 new URLRequestContextSelector(url_request_context, | 222 new URLRequestContextSelector(url_request_context, |
222 media_url_request_context)); | 223 media_url_request_context)); |
223 process_->GetHost()->AddFilter(resource_message_filter); | 224 process_->GetHost()->AddFilter(resource_message_filter); |
224 | 225 |
225 worker_message_filter_ = new WorkerMessageFilter( | 226 worker_message_filter_ = new WorkerMessageFilter( |
226 render_process_id, resource_context_, partition_, | 227 render_process_id, resource_context_, partition_, |
227 base::Bind(&WorkerServiceImpl::next_worker_route_id, | 228 base::Bind(&WorkerServiceImpl::next_worker_route_id, |
228 base::Unretained(WorkerServiceImpl::GetInstance()))); | 229 base::Unretained(WorkerServiceImpl::GetInstance()))); |
229 process_->GetHost()->AddFilter(worker_message_filter_); | 230 process_->GetHost()->AddFilter(worker_message_filter_); |
230 process_->GetHost()->AddFilter(new AppCacheDispatcherHost( | 231 process_->GetHost()->AddFilter(new AppCacheDispatcherHost( |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 return false; | 667 return false; |
667 } | 668 } |
668 | 669 |
669 WorkerProcessHost::WorkerInstance::FilterInfo | 670 WorkerProcessHost::WorkerInstance::FilterInfo |
670 WorkerProcessHost::WorkerInstance::GetFilter() const { | 671 WorkerProcessHost::WorkerInstance::GetFilter() const { |
671 DCHECK(NumFilters() == 1); | 672 DCHECK(NumFilters() == 1); |
672 return *filters_.begin(); | 673 return *filters_.begin(); |
673 } | 674 } |
674 | 675 |
675 } // namespace content | 676 } // namespace content |
OLD | NEW |