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

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

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

Powered by Google App Engine
This is Rietveld 408576698