OLD | NEW |
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 "config.h" | 5 #include "config.h" |
6 #include "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
7 | 7 |
8 MSVC_PUSH_WARNING_LEVEL(0); | 8 MSVC_PUSH_WARNING_LEVEL(0); |
9 #include "FormData.h" | 9 #include "FormData.h" |
10 #include "HTTPHeaderMap.h" | 10 #include "HTTPHeaderMap.h" |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 formdata->appendFile( | 195 formdata->appendFile( |
196 webkit_glue::StdWStringToString(element.file_path())); | 196 webkit_glue::StdWStringToString(element.file_path())); |
197 } else { | 197 } else { |
198 NOTREACHED(); | 198 NOTREACHED(); |
199 } | 199 } |
200 } | 200 } |
201 | 201 |
202 request_.resourceRequest().setHTTPBody(formdata); | 202 request_.resourceRequest().setHTTPBody(formdata); |
203 } | 203 } |
204 | 204 |
| 205 void WebRequestImpl::SetRequestorID(int requestor_id) { |
| 206 request_.resourceRequest().setRequestorID(requestor_id); |
| 207 } |
| 208 |
205 // static | 209 // static |
206 WebRequest* WebRequest::Create(const GURL& url) { | 210 WebRequest* WebRequest::Create(const GURL& url) { |
207 return new WebRequestImpl(url); | 211 return new WebRequestImpl(url); |
208 } | 212 } |
OLD | NEW |