OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_HTTP_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "net/url_request/url_request_throttler_entry_interface.h" | 27 #include "net/url_request/url_request_throttler_entry_interface.h" |
28 | 28 |
29 namespace net { | 29 namespace net { |
30 | 30 |
31 class HttpRequestHeaders; | 31 class HttpRequestHeaders; |
32 class HttpResponseHeaders; | 32 class HttpResponseHeaders; |
33 class HttpResponseInfo; | 33 class HttpResponseInfo; |
34 class HttpTransaction; | 34 class HttpTransaction; |
35 class HttpUserAgentSettings; | 35 class HttpUserAgentSettings; |
36 class ProxyInfo; | 36 class ProxyInfo; |
| 37 class SSLPrivateKey; |
37 class UploadDataStream; | 38 class UploadDataStream; |
38 class URLRequestContext; | 39 class URLRequestContext; |
39 | 40 |
40 // A URLRequestJob subclass that is built on top of HttpTransaction. It | 41 // A URLRequestJob subclass that is built on top of HttpTransaction. It |
41 // provides an implementation for both HTTP and HTTPS. | 42 // provides an implementation for both HTTP and HTTPS. |
42 class NET_EXPORT_PRIVATE URLRequestHttpJob : public URLRequestJob { | 43 class NET_EXPORT_PRIVATE URLRequestHttpJob : public URLRequestJob { |
43 public: | 44 public: |
44 static URLRequestJob* Factory(URLRequest* request, | 45 static URLRequestJob* Factory(URLRequest* request, |
45 NetworkDelegate* network_delegate, | 46 NetworkDelegate* network_delegate, |
46 const std::string& scheme); | 47 const std::string& scheme); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 bool GetRemoteEndpoint(IPEndPoint* endpoint) const override; | 122 bool GetRemoteEndpoint(IPEndPoint* endpoint) const override; |
122 bool GetResponseCookies(std::vector<std::string>* cookies) override; | 123 bool GetResponseCookies(std::vector<std::string>* cookies) override; |
123 int GetResponseCode() const override; | 124 int GetResponseCode() const override; |
124 Filter* SetupFilter() const override; | 125 Filter* SetupFilter() const override; |
125 bool CopyFragmentOnRedirect(const GURL& location) const override; | 126 bool CopyFragmentOnRedirect(const GURL& location) const override; |
126 bool IsSafeRedirect(const GURL& location) override; | 127 bool IsSafeRedirect(const GURL& location) override; |
127 bool NeedsAuth() override; | 128 bool NeedsAuth() override; |
128 void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) override; | 129 void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) override; |
129 void SetAuth(const AuthCredentials& credentials) override; | 130 void SetAuth(const AuthCredentials& credentials) override; |
130 void CancelAuth() override; | 131 void CancelAuth() override; |
131 void ContinueWithCertificate(X509Certificate* client_cert) override; | 132 void ContinueWithCertificate(X509Certificate* client_cert, |
| 133 SSLPrivateKey* client_private_key) override; |
132 void ContinueDespiteLastError() override; | 134 void ContinueDespiteLastError() override; |
133 void ResumeNetworkStart() override; | 135 void ResumeNetworkStart() override; |
134 bool ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) override; | 136 bool ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) override; |
135 void StopCaching() override; | 137 void StopCaching() override; |
136 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; | 138 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; |
137 int64 GetTotalReceivedBytes() const override; | 139 int64 GetTotalReceivedBytes() const override; |
138 int64_t GetTotalSentBytes() const override; | 140 int64_t GetTotalSentBytes() const override; |
139 void DoneReading() override; | 141 void DoneReading() override; |
140 void DoneReadingRedirectResponse() override; | 142 void DoneReadingRedirectResponse() override; |
141 | 143 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 int64_t total_sent_bytes_from_previous_transactions_; | 288 int64_t total_sent_bytes_from_previous_transactions_; |
287 | 289 |
288 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; | 290 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; |
289 | 291 |
290 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 292 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
291 }; | 293 }; |
292 | 294 |
293 } // namespace net | 295 } // namespace net |
294 | 296 |
295 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 297 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
OLD | NEW |