| 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_HTTP_HTTP_TRANSACTION_WINHTTP_H__ | 5 #ifndef NET_HTTP_HTTP_TRANSACTION_WINHTTP_H__ |
| 6 #define NET_HTTP_HTTP_TRANSACTION_WINHTTP_H__ | 6 #define NET_HTTP_HTTP_TRANSACTION_WINHTTP_H__ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <winhttp.h> | 9 #include <winhttp.h> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 DCHECK(proxy_service); | 33 DCHECK(proxy_service); |
| 34 } | 34 } |
| 35 ~Factory(); | 35 ~Factory(); |
| 36 | 36 |
| 37 virtual HttpTransaction* CreateTransaction(); | 37 virtual HttpTransaction* CreateTransaction(); |
| 38 virtual HttpCache* GetCache(); | 38 virtual HttpCache* GetCache(); |
| 39 virtual void Suspend(bool suspend); | 39 virtual void Suspend(bool suspend); |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 Session* session_; | 42 Session* session_; |
| 43 ProxyService* proxy_service_; | 43 scoped_refptr<ProxyService> proxy_service_; |
| 44 bool is_suspended_; | 44 bool is_suspended_; |
| 45 DISALLOW_EVIL_CONSTRUCTORS(Factory); | 45 DISALLOW_EVIL_CONSTRUCTORS(Factory); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 virtual ~HttpTransactionWinHttp(); | 48 virtual ~HttpTransactionWinHttp(); |
| 49 | 49 |
| 50 // HttpTransaction methods: | 50 // HttpTransaction methods: |
| 51 virtual int Start(const HttpRequestInfo*, CompletionCallback*); | 51 virtual int Start(const HttpRequestInfo*, CompletionCallback*); |
| 52 virtual int RestartIgnoringLastError(CompletionCallback*); | 52 virtual int RestartIgnoringLastError(CompletionCallback*); |
| 53 virtual int RestartWithAuth(const std::wstring&, | 53 virtual int RestartWithAuth(const std::wstring&, |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // True if we have used the username/password embedded in the URL. | 190 // True if we have used the username/password embedded in the URL. |
| 191 bool used_embedded_credentials_; | 191 bool used_embedded_credentials_; |
| 192 | 192 |
| 193 DISALLOW_EVIL_CONSTRUCTORS(HttpTransactionWinHttp); | 193 DISALLOW_EVIL_CONSTRUCTORS(HttpTransactionWinHttp); |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 } // namespace net | 196 } // namespace net |
| 197 | 197 |
| 198 #endif // NET_HTTP_HTTP_TRANSACTION_WINHTTP_H__ | 198 #endif // NET_HTTP_HTTP_TRANSACTION_WINHTTP_H__ |
| 199 | 199 |
| OLD | NEW |