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

Side by Side Diff: net/url_request/url_request_inet_job.h

Issue 18390: Change URLRequest to use a ref-counted buffer for actual IO.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_inet_job.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 #ifndef NET_URL_REQUEST_URL_REQUEST_INET_JOB_H__ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_INET_JOB_H__
6 #define NET_URL_REQUEST_URL_REQUEST_INET_JOB_H__ 6 #define NET_URL_REQUEST_URL_REQUEST_INET_JOB_H__
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <wininet.h> 9 #include <wininet.h>
10 10
(...skipping 11 matching lines...) Expand all
22 class URLRequestInetJob : public URLRequestJob { 22 class URLRequestInetJob : public URLRequestJob {
23 public: 23 public:
24 URLRequestInetJob(URLRequest* request); 24 URLRequestInetJob(URLRequest* request);
25 virtual ~URLRequestInetJob(); 25 virtual ~URLRequestInetJob();
26 26
27 virtual void SetExtraRequestHeaders(const std::string& headers) { 27 virtual void SetExtraRequestHeaders(const std::string& headers) {
28 extra_request_headers_ = headers; 28 extra_request_headers_ = headers;
29 } 29 }
30 30
31 virtual void Kill(); 31 virtual void Kill();
32 virtual bool ReadRawData(char* buf, int buf_size, int *bytes_read); 32 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read);
33 33
34 // URLRequestJob Authentication methods 34 // URLRequestJob Authentication methods
35 virtual void SetAuth(const std::wstring& username, 35 virtual void SetAuth(const std::wstring& username,
36 const std::wstring& password); 36 const std::wstring& password);
37 virtual void CancelAuth(); 37 virtual void CancelAuth();
38 38
39 // A structure holding the result and error code of an asynchronous IO. 39 // A structure holding the result and error code of an asynchronous IO.
40 // This is a copy of INTERNET_ASYNC_RESULT. 40 // This is a copy of INTERNET_ASYNC_RESULT.
41 struct AsyncResult { 41 struct AsyncResult {
42 DWORD_PTR dwResult; 42 DWORD_PTR dwResult;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 AsyncResult async_result_; 153 AsyncResult async_result_;
154 154
155 Lock loop_lock_; 155 Lock loop_lock_;
156 MessageLoop* loop_; 156 MessageLoop* loop_;
157 157
158 DISALLOW_EVIL_CONSTRUCTORS(URLRequestInetJob); 158 DISALLOW_EVIL_CONSTRUCTORS(URLRequestInetJob);
159 }; 159 };
160 160
161 #endif // NET_URL_REQUEST_URL_REQUEST_INET_JOB_H__ 161 #endif // NET_URL_REQUEST_URL_REQUEST_INET_JOB_H__
162 162
OLDNEW
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_inet_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698