Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Side by Side Diff: content/browser/worker_host/worker_process_host.cc

Issue 11778016: net: Stop using base::WorkerPool from UploadFileElementReader (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: _ Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698