| 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 #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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |