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

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

Issue 113069: Content-Dispositon handling fix #2. Still WiP. Uploading as a check point.... Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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.cc ('k') | chrome/renderer/media/buffered_data_source.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_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 GURL(cprequest_->url), // TODO(jackson): policy url? 148 GURL(cprequest_->url), // TODO(jackson): policy url?
149 GURL(), // TODO(mpcomplete): referrer? 149 GURL(), // TODO(mpcomplete): referrer?
150 "null", // frame_origin 150 "null", // frame_origin
151 "null", // main_frame_origin 151 "null", // main_frame_origin
152 extra_headers_, 152 extra_headers_,
153 load_flags_, 153 load_flags_,
154 base::GetCurrentProcId(), 154 base::GetCurrentProcId(),
155 ResourceType::OBJECT, 155 ResourceType::OBJECT,
156 cprequest_->context, 156 cprequest_->context,
157 WebAppCacheContext::kNoAppCacheContextId, 157 WebAppCacheContext::kNoAppCacheContextId,
158 MSG_ROUTING_CONTROL)); 158 MSG_ROUTING_CONTROL,
159 // TODO(jungshik): disposition_fallback_charset can be
160 // useful if there's a plugin utilizing it (e.g. Flash
161 // can use this to determine the character encoding,
162 // but currently it does not leading to garbled strings
163 // when strings are in so-called "ANSI" rather than Unicode).
164 ""));
159 if (!bridge_.get()) 165 if (!bridge_.get())
160 return CPERR_FAILURE; 166 return CPERR_FAILURE;
161 167
162 for (size_t i = 0; i < upload_content_.size(); ++i) { 168 for (size_t i = 0; i < upload_content_.size(); ++i) {
163 switch (upload_content_[i].type()) { 169 switch (upload_content_[i].type()) {
164 case net::UploadData::TYPE_BYTES: { 170 case net::UploadData::TYPE_BYTES: {
165 const std::vector<char>& bytes = upload_content_[i].bytes(); 171 const std::vector<char>& bytes = upload_content_[i].bytes();
166 bridge_->AppendDataToUpload(&bytes[0], 172 bridge_->AppendDataToUpload(&bytes[0],
167 static_cast<int>(bytes.size())); 173 static_cast<int>(bytes.size()));
168 break; 174 break;
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 619
614 response_funcs.size = sizeof(response_funcs); 620 response_funcs.size = sizeof(response_funcs);
615 response_funcs.received_redirect = CPRR_ReceivedRedirect; 621 response_funcs.received_redirect = CPRR_ReceivedRedirect;
616 response_funcs.start_completed = CPRR_StartCompleted; 622 response_funcs.start_completed = CPRR_StartCompleted;
617 response_funcs.read_completed = CPRR_ReadCompleted; 623 response_funcs.read_completed = CPRR_ReadCompleted;
618 response_funcs.upload_progress = CPRR_UploadProgress; 624 response_funcs.upload_progress = CPRR_UploadProgress;
619 } 625 }
620 626
621 return &browser_funcs; 627 return &browser_funcs;
622 } 628 }
OLDNEW
« no previous file with comments | « chrome/common/resource_dispatcher.cc ('k') | chrome/renderer/media/buffered_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698