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

Side by Side Diff: chrome/browser/renderer_host/resource_dispatcher_host_request_info.cc

Issue 3127008: Preliminary work on resuming downloads whose connections have expired.
Patch Set: Waiting to send download automation error message until after other downloads are canceled. Created 10 years, 3 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h" 5 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h"
6 6
7 #include "chrome/browser/login_prompt.h" 7 #include "chrome/browser/login_prompt.h"
8 #include "chrome/browser/renderer_host/resource_handler.h" 8 #include "chrome/browser/renderer_host/resource_handler.h"
9 #include "chrome/browser/ssl/ssl_client_auth_handler.h" 9 #include "chrome/browser/ssl/ssl_client_auth_handler.h"
10 10
(...skipping 27 matching lines...) Expand all
38 replace_extension_localization_templates_(false), 38 replace_extension_localization_templates_(false),
39 last_load_state_(net::LOAD_STATE_IDLE), 39 last_load_state_(net::LOAD_STATE_IDLE),
40 upload_size_(upload_size), 40 upload_size_(upload_size),
41 last_upload_position_(0), 41 last_upload_position_(0),
42 waiting_for_upload_progress_ack_(false), 42 waiting_for_upload_progress_ack_(false),
43 memory_cost_(0), 43 memory_cost_(0),
44 is_paused_(false), 44 is_paused_(false),
45 called_on_response_started_(false), 45 called_on_response_started_(false),
46 has_started_reading_(false), 46 has_started_reading_(false),
47 paused_read_bytes_(0), 47 paused_read_bytes_(0),
48 was_interrupted_(false),
49 interrupted_bytes_(0),
48 host_renderer_id_(host_renderer_id), 50 host_renderer_id_(host_renderer_id),
49 host_render_view_id_(host_render_view_id) { 51 host_render_view_id_(host_render_view_id) {
50 } 52 }
51 53
52 ResourceDispatcherHostRequestInfo::~ResourceDispatcherHostRequestInfo() { 54 ResourceDispatcherHostRequestInfo::~ResourceDispatcherHostRequestInfo() {
53 resource_handler_->OnRequestClosed(); 55 resource_handler_->OnRequestClosed();
54 } 56 }
55 57
56 void ResourceDispatcherHostRequestInfo::set_login_handler(LoginHandler* lh) { 58 void ResourceDispatcherHostRequestInfo::set_login_handler(LoginHandler* lh) {
57 login_handler_ = lh; 59 login_handler_ = lh;
58 } 60 }
59 61
60 void ResourceDispatcherHostRequestInfo::set_ssl_client_auth_handler( 62 void ResourceDispatcherHostRequestInfo::set_ssl_client_auth_handler(
61 SSLClientAuthHandler* s) { 63 SSLClientAuthHandler* s) {
62 ssl_client_auth_handler_ = s; 64 ssl_client_auth_handler_ = s;
63 } 65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698