OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 std::vector<Filter::FilterType>* encoding_type); | 47 std::vector<Filter::FilterType>* encoding_type); |
48 virtual bool IsCachedContent() const { return is_cached_content_; } | 48 virtual bool IsCachedContent() const { return is_cached_content_; } |
49 virtual bool IsSdchResponse() const; | 49 virtual bool IsSdchResponse() const; |
50 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); | 50 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); |
51 virtual bool IsSafeRedirect(const GURL& location); | 51 virtual bool IsSafeRedirect(const GURL& location); |
52 virtual bool NeedsAuth(); | 52 virtual bool NeedsAuth(); |
53 virtual void GetAuthChallengeInfo(scoped_refptr<net::AuthChallengeInfo>*); | 53 virtual void GetAuthChallengeInfo(scoped_refptr<net::AuthChallengeInfo>*); |
54 virtual void SetAuth(const std::wstring& username, | 54 virtual void SetAuth(const std::wstring& username, |
55 const std::wstring& password); | 55 const std::wstring& password); |
56 virtual void CancelAuth(); | 56 virtual void CancelAuth(); |
| 57 virtual void ContinueWithCertificate(net::X509Certificate* client_cert); |
57 virtual void ContinueDespiteLastError(); | 58 virtual void ContinueDespiteLastError(); |
58 virtual bool GetMoreData(); | 59 virtual bool GetMoreData(); |
59 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read); | 60 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read); |
60 | 61 |
61 // Shadows URLRequestJob's version of this method so we can grab cookies. | 62 // Shadows URLRequestJob's version of this method so we can grab cookies. |
62 void NotifyHeadersComplete(); | 63 void NotifyHeadersComplete(); |
63 | 64 |
64 void DestroyTransaction(); | 65 void DestroyTransaction(); |
65 void StartTransaction(); | 66 void StartTransaction(); |
66 void AddExtraHeaders(); | 67 void AddExtraHeaders(); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 bool sdch_test_activated_; // Advertising a dictionary for sdch. | 112 bool sdch_test_activated_; // Advertising a dictionary for sdch. |
112 bool sdch_test_control_; // Not even accepting-content sdch. | 113 bool sdch_test_control_; // Not even accepting-content sdch. |
113 | 114 |
114 // For recording of stats, we need to remember if this is cached content. | 115 // For recording of stats, we need to remember if this is cached content. |
115 bool is_cached_content_; | 116 bool is_cached_content_; |
116 | 117 |
117 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 118 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
118 }; | 119 }; |
119 | 120 |
120 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 121 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
OLD | NEW |