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

Side by Side Diff: chrome_frame/urlmon_url_request_private.h

Issue 7846007: net: Rename URLRequestStatus::os_error_. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix os_error_code Created 9 years, 3 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_FRAME_URLMON_URL_REQUEST_PRIVATE_H_ 5 #ifndef CHROME_FRAME_URLMON_URL_REQUEST_PRIVATE_H_
6 #define CHROME_FRAME_URLMON_URL_REQUEST_PRIVATE_H_ 6 #define CHROME_FRAME_URLMON_URL_REQUEST_PRIVATE_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 #include <string> 10 #include <string>
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 } 203 }
204 204
205 const Redirection& get_redirection() const { 205 const Redirection& get_redirection() const {
206 return redirect_; 206 return redirect_;
207 } 207 }
208 208
209 const net::URLRequestStatus& get_result() const { 209 const net::URLRequestStatus& get_result() const {
210 return result_; 210 return result_;
211 } 211 }
212 212
213 void set_result(net::URLRequestStatus::Status status, int os_error) { 213 void set_result(net::URLRequestStatus::Status status, int error) {
214 result_.set_status(status); 214 result_.set_status(status);
215 result_.set_os_error(os_error); 215 result_.set_error(error);
216 } 216 }
217 217
218 void set_result(HRESULT hr) { 218 void set_result(HRESULT hr) {
219 result_.set_status(FAILED(hr)? net::URLRequestStatus::FAILED: 219 result_.set_status(FAILED(hr)? net::URLRequestStatus::FAILED:
220 net::URLRequestStatus::SUCCESS); 220 net::URLRequestStatus::SUCCESS);
221 result_.set_os_error(HresultToNetError(hr)); 221 result_.set_error(HresultToNetError(hr));
222 } 222 }
223 223
224 private: 224 private:
225 Redirection redirect_; 225 Redirection redirect_;
226 State state_; 226 State state_;
227 net::URLRequestStatus result_; 227 net::URLRequestStatus result_;
228 }; 228 };
229 229
230 Status status_; 230 Status status_;
231 base::win::ScopedComPtr<IBinding> binding_; 231 base::win::ScopedComPtr<IBinding> binding_;
(...skipping 20 matching lines...) Expand all
252 // when this object is destroyed. Happens if we return 252 // when this object is destroyed. Happens if we return
253 // INET_E_TERMINATE_BIND from OnDataAvailable in the last data notification. 253 // INET_E_TERMINATE_BIND from OnDataAvailable in the last data notification.
254 bool cleanup_transaction_; 254 bool cleanup_transaction_;
255 // Copy of the request headers. 255 // Copy of the request headers.
256 std::string request_headers_; 256 std::string request_headers_;
257 257
258 DISALLOW_COPY_AND_ASSIGN(UrlmonUrlRequest); 258 DISALLOW_COPY_AND_ASSIGN(UrlmonUrlRequest);
259 }; 259 };
260 260
261 #endif // CHROME_FRAME_URLMON_URL_REQUEST_PRIVATE_H_ 261 #endif // CHROME_FRAME_URLMON_URL_REQUEST_PRIVATE_H_
OLDNEW
« no previous file with comments | « chrome_frame/test/url_request_test.cc ('k') | content/browser/download/download_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698