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

Side by Side Diff: chrome/plugin/chrome_plugin_host.cc

Issue 48038: SSL Fix: Step 3.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/common/resource_dispatcher_unittest.cc ('k') | chrome/renderer/renderer_glue.cc » ('j') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/plugin/chrome_plugin_host.h" 5 #include "chrome/plugin/chrome_plugin_host.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "chrome/common/chrome_constants.h" 10 #include "chrome/common/chrome_constants.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 upload_content_.back().SetToFilePathRange(filepath, offset, length); 137 upload_content_.back().SetToFilePathRange(filepath, offset, length);
138 } 138 }
139 139
140 CPError Start() { 140 CPError Start() {
141 bridge_.reset( 141 bridge_.reset(
142 PluginThread::current()->resource_dispatcher()->CreateBridge( 142 PluginThread::current()->resource_dispatcher()->CreateBridge(
143 cprequest_->method, 143 cprequest_->method,
144 GURL(cprequest_->url), 144 GURL(cprequest_->url),
145 GURL(cprequest_->url), // TODO(jackson): policy url? 145 GURL(cprequest_->url), // TODO(jackson): policy url?
146 GURL(), // TODO(mpcomplete): referrer? 146 GURL(), // TODO(mpcomplete): referrer?
147 "null", // frame_origin
148 "null", // main_frame_origin
147 extra_headers_, 149 extra_headers_,
148 load_flags_, 150 load_flags_,
149 GetCurrentProcessId(), 151 GetCurrentProcessId(),
150 ResourceType::OBJECT, 152 ResourceType::OBJECT,
151 false, // TODO (jcampan): mixed-content?
152 cprequest_->context, 153 cprequest_->context,
153 MSG_ROUTING_CONTROL)); 154 MSG_ROUTING_CONTROL));
154 if (!bridge_.get()) 155 if (!bridge_.get())
155 return CPERR_FAILURE; 156 return CPERR_FAILURE;
156 157
157 for (size_t i = 0; i < upload_content_.size(); ++i) { 158 for (size_t i = 0; i < upload_content_.size(); ++i) {
158 switch (upload_content_[i].type()) { 159 switch (upload_content_[i].type()) {
159 case net::UploadData::TYPE_BYTES: { 160 case net::UploadData::TYPE_BYTES: {
160 const std::vector<char>& bytes = upload_content_[i].bytes(); 161 const std::vector<char>& bytes = upload_content_[i].bytes();
161 bridge_->AppendDataToUpload(&bytes[0], 162 bridge_->AppendDataToUpload(&bytes[0],
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 610
610 response_funcs.size = sizeof(response_funcs); 611 response_funcs.size = sizeof(response_funcs);
611 response_funcs.received_redirect = CPRR_ReceivedRedirect; 612 response_funcs.received_redirect = CPRR_ReceivedRedirect;
612 response_funcs.start_completed = CPRR_StartCompleted; 613 response_funcs.start_completed = CPRR_StartCompleted;
613 response_funcs.read_completed = CPRR_ReadCompleted; 614 response_funcs.read_completed = CPRR_ReadCompleted;
614 response_funcs.upload_progress = CPRR_UploadProgress; 615 response_funcs.upload_progress = CPRR_UploadProgress;
615 } 616 }
616 617
617 return &browser_funcs; 618 return &browser_funcs;
618 } 619 }
OLDNEW
« no previous file with comments | « chrome/common/resource_dispatcher_unittest.cc ('k') | chrome/renderer/renderer_glue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698