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

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

Issue 5603008: Modify the "dangerous download" algorithm as follows. Original patch by Pier... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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 | 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 "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/renderer_host/resource_handler.h" 7 #include "chrome/browser/renderer_host/resource_handler.h"
8 #include "chrome/browser/ssl/ssl_client_auth_handler.h" 8 #include "chrome/browser/ssl/ssl_client_auth_handler.h"
9 #include "chrome/browser/ui/login/login_prompt.h" 9 #include "chrome/browser/ui/login/login_prompt.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 const std::string& frame_origin, 18 const std::string& frame_origin,
19 const std::string& main_frame_origin, 19 const std::string& main_frame_origin,
20 ResourceType::Type resource_type, 20 ResourceType::Type resource_type,
21 uint64 upload_size, 21 uint64 upload_size,
22 bool is_download, 22 bool is_download,
23 bool allow_download, 23 bool allow_download,
24 bool has_user_gesture,
24 int host_renderer_id, 25 int host_renderer_id,
25 int host_render_view_id) 26 int host_render_view_id)
26 : resource_handler_(handler), 27 : resource_handler_(handler),
27 cross_site_handler_(NULL), 28 cross_site_handler_(NULL),
28 process_type_(process_type), 29 process_type_(process_type),
29 child_id_(child_id), 30 child_id_(child_id),
30 route_id_(route_id), 31 route_id_(route_id),
31 request_id_(request_id), 32 request_id_(request_id),
32 pending_data_count_(0), 33 pending_data_count_(0),
33 is_download_(is_download), 34 is_download_(is_download),
34 allow_download_(allow_download), 35 allow_download_(allow_download),
36 has_user_gesture_(has_user_gesture),
35 pause_count_(0), 37 pause_count_(0),
36 frame_origin_(frame_origin), 38 frame_origin_(frame_origin),
37 main_frame_origin_(main_frame_origin), 39 main_frame_origin_(main_frame_origin),
38 resource_type_(resource_type), 40 resource_type_(resource_type),
39 replace_extension_localization_templates_(false), 41 replace_extension_localization_templates_(false),
40 last_load_state_(net::LOAD_STATE_IDLE), 42 last_load_state_(net::LOAD_STATE_IDLE),
41 upload_size_(upload_size), 43 upload_size_(upload_size),
42 last_upload_position_(0), 44 last_upload_position_(0),
43 waiting_for_upload_progress_ack_(false), 45 waiting_for_upload_progress_ack_(false),
44 memory_cost_(0), 46 memory_cost_(0),
(...skipping 15 matching lines...) Expand all
60 62
61 void ResourceDispatcherHostRequestInfo::set_ssl_client_auth_handler( 63 void ResourceDispatcherHostRequestInfo::set_ssl_client_auth_handler(
62 SSLClientAuthHandler* s) { 64 SSLClientAuthHandler* s) {
63 ssl_client_auth_handler_ = s; 65 ssl_client_auth_handler_ = s;
64 } 66 }
65 67
66 void ResourceDispatcherHostRequestInfo::set_requested_blob_data( 68 void ResourceDispatcherHostRequestInfo::set_requested_blob_data(
67 webkit_blob::BlobData* data) { 69 webkit_blob::BlobData* data) {
68 requested_blob_data_ = data; 70 requested_blob_data_ = data;
69 } 71 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698