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

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

Issue 6576020: Remove Gears from Chrome (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: windows fixes Created 9 years, 9 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 | Annotate | Revision Log
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 "content/browser/renderer_host/resource_dispatcher_host_request_info.h" 5 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h"
6 6
7 #include "chrome/browser/ssl/ssl_client_auth_handler.h" 7 #include "chrome/browser/ssl/ssl_client_auth_handler.h"
8 #include "chrome/browser/ui/login/login_prompt.h" 8 #include "chrome/browser/ui/login/login_prompt.h"
9 #include "content/browser/renderer_host/resource_handler.h" 9 #include "content/browser/renderer_host/resource_handler.h"
10 #include "webkit/blob/blob_data.h" 10 #include "webkit/blob/blob_data.h"
11 11
12 ResourceDispatcherHostRequestInfo::ResourceDispatcherHostRequestInfo( 12 ResourceDispatcherHostRequestInfo::ResourceDispatcherHostRequestInfo(
13 ResourceHandler* handler, 13 ResourceHandler* handler,
14 ChildProcessInfo::ProcessType process_type, 14 ChildProcessInfo::ProcessType process_type,
15 int child_id, 15 int child_id,
16 int route_id, 16 int route_id,
17 int request_id, 17 int request_id,
18 ResourceType::Type resource_type, 18 ResourceType::Type resource_type,
19 uint64 upload_size, 19 uint64 upload_size,
20 bool is_download, 20 bool is_download,
21 bool allow_download, 21 bool allow_download,
22 bool has_user_gesture, 22 bool has_user_gesture)
23 int host_renderer_id,
24 int host_render_view_id)
25 : resource_handler_(handler), 23 : resource_handler_(handler),
26 cross_site_handler_(NULL), 24 cross_site_handler_(NULL),
27 process_type_(process_type), 25 process_type_(process_type),
28 child_id_(child_id), 26 child_id_(child_id),
29 route_id_(route_id), 27 route_id_(route_id),
30 request_id_(request_id), 28 request_id_(request_id),
31 pending_data_count_(0), 29 pending_data_count_(0),
32 is_download_(is_download), 30 is_download_(is_download),
33 allow_download_(allow_download), 31 allow_download_(allow_download),
34 has_user_gesture_(has_user_gesture), 32 has_user_gesture_(has_user_gesture),
35 pause_count_(0), 33 pause_count_(0),
36 resource_type_(resource_type), 34 resource_type_(resource_type),
37 last_load_state_(net::LOAD_STATE_IDLE), 35 last_load_state_(net::LOAD_STATE_IDLE),
38 upload_size_(upload_size), 36 upload_size_(upload_size),
39 last_upload_position_(0), 37 last_upload_position_(0),
40 waiting_for_upload_progress_ack_(false), 38 waiting_for_upload_progress_ack_(false),
41 memory_cost_(0), 39 memory_cost_(0),
42 is_paused_(false), 40 is_paused_(false),
43 called_on_response_started_(false), 41 called_on_response_started_(false),
44 has_started_reading_(false), 42 has_started_reading_(false),
45 paused_read_bytes_(0), 43 paused_read_bytes_(0) {
46 host_renderer_id_(host_renderer_id),
47 host_render_view_id_(host_render_view_id) {
48 } 44 }
49 45
50 ResourceDispatcherHostRequestInfo::~ResourceDispatcherHostRequestInfo() { 46 ResourceDispatcherHostRequestInfo::~ResourceDispatcherHostRequestInfo() {
51 resource_handler_->OnRequestClosed(); 47 resource_handler_->OnRequestClosed();
52 } 48 }
53 49
54 void ResourceDispatcherHostRequestInfo::set_login_handler(LoginHandler* lh) { 50 void ResourceDispatcherHostRequestInfo::set_login_handler(LoginHandler* lh) {
55 login_handler_ = lh; 51 login_handler_ = lh;
56 } 52 }
57 53
58 void ResourceDispatcherHostRequestInfo::set_ssl_client_auth_handler( 54 void ResourceDispatcherHostRequestInfo::set_ssl_client_auth_handler(
59 SSLClientAuthHandler* s) { 55 SSLClientAuthHandler* s) {
60 ssl_client_auth_handler_ = s; 56 ssl_client_auth_handler_ = s;
61 } 57 }
62 58
63 void ResourceDispatcherHostRequestInfo::set_requested_blob_data( 59 void ResourceDispatcherHostRequestInfo::set_requested_blob_data(
64 webkit_blob::BlobData* data) { 60 webkit_blob::BlobData* data) {
65 requested_blob_data_ = data; 61 requested_blob_data_ = data;
66 } 62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698