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

Side by Side Diff: content/browser/renderer_host/resource_dispatcher_host.cc

Issue 8770024: Added a download file factory to the download file manager, for testing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Minor cleanup. Created 9 years 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
« no previous file with comments | « content/browser/download/download_file_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #include "content/browser/renderer_host/resource_dispatcher_host.h" 7 #include "content/browser/renderer_host/resource_dispatcher_host.h"
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 render_view_id); 285 render_view_id);
286 if (rvh) 286 if (rvh)
287 rvh->OnSwapOutACK(); 287 rvh->OnSwapOutACK();
288 } 288 }
289 289
290 } // namespace 290 } // namespace
291 291
292 ResourceDispatcherHost::ResourceDispatcherHost( 292 ResourceDispatcherHost::ResourceDispatcherHost(
293 const ResourceQueue::DelegateSet& resource_queue_delegates) 293 const ResourceQueue::DelegateSet& resource_queue_delegates)
294 : ALLOW_THIS_IN_INITIALIZER_LIST( 294 : ALLOW_THIS_IN_INITIALIZER_LIST(
295 download_file_manager_(new DownloadFileManager(this))), 295 download_file_manager_(new DownloadFileManager(this, NULL))),
296 ALLOW_THIS_IN_INITIALIZER_LIST( 296 ALLOW_THIS_IN_INITIALIZER_LIST(
297 save_file_manager_(new SaveFileManager(this))), 297 save_file_manager_(new SaveFileManager(this))),
298 request_id_(-1), 298 request_id_(-1),
299 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)), 299 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)),
300 is_shutdown_(false), 300 is_shutdown_(false),
301 max_outstanding_requests_cost_per_process_( 301 max_outstanding_requests_cost_per_process_(
302 kMaxOutstandingRequestsCostPerProcess), 302 kMaxOutstandingRequestsCostPerProcess),
303 filter_(NULL), 303 filter_(NULL),
304 delegate_(NULL), 304 delegate_(NULL),
305 allow_cross_origin_auth_prompt_(false) { 305 allow_cross_origin_auth_prompt_(false) {
(...skipping 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after
2235 2235
2236 void ResourceDispatcherHost::set_allow_cross_origin_auth_prompt(bool value) { 2236 void ResourceDispatcherHost::set_allow_cross_origin_auth_prompt(bool value) {
2237 allow_cross_origin_auth_prompt_ = value; 2237 allow_cross_origin_auth_prompt_ = value;
2238 } 2238 }
2239 2239
2240 void ResourceDispatcherHost::MarkAsTransferredNavigation( 2240 void ResourceDispatcherHost::MarkAsTransferredNavigation(
2241 const GlobalRequestID& transferred_request_id, 2241 const GlobalRequestID& transferred_request_id,
2242 net::URLRequest* ransferred_request) { 2242 net::URLRequest* ransferred_request) {
2243 transferred_navigations_[transferred_request_id] = ransferred_request; 2243 transferred_navigations_[transferred_request_id] = ransferred_request;
2244 } 2244 }
OLDNEW
« no previous file with comments | « content/browser/download/download_file_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698