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_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 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual bool IsSdchResponse() const; | 46 virtual bool IsSdchResponse() const; |
47 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); | 47 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); |
48 virtual bool IsSafeRedirect(const GURL& location); | 48 virtual bool IsSafeRedirect(const GURL& location); |
49 virtual bool NeedsAuth(); | 49 virtual bool NeedsAuth(); |
50 virtual void GetAuthChallengeInfo(scoped_refptr<net::AuthChallengeInfo>*); | 50 virtual void GetAuthChallengeInfo(scoped_refptr<net::AuthChallengeInfo>*); |
51 virtual void SetAuth(const std::wstring& username, | 51 virtual void SetAuth(const std::wstring& username, |
52 const std::wstring& password); | 52 const std::wstring& password); |
53 virtual void CancelAuth(); | 53 virtual void CancelAuth(); |
54 virtual void ContinueDespiteLastError(); | 54 virtual void ContinueDespiteLastError(); |
55 virtual bool GetMoreData(); | 55 virtual bool GetMoreData(); |
56 virtual bool ReadRawData(char* buf, int buf_size, int *bytes_read); | 56 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read); |
57 | 57 |
58 // Shadows URLRequestJob's version of this method so we can grab cookies. | 58 // Shadows URLRequestJob's version of this method so we can grab cookies. |
59 void NotifyHeadersComplete(); | 59 void NotifyHeadersComplete(); |
60 | 60 |
61 void DestroyTransaction(); | 61 void DestroyTransaction(); |
62 void StartTransaction(); | 62 void StartTransaction(); |
63 void AddExtraHeaders(); | 63 void AddExtraHeaders(); |
64 void FetchResponseCookies(); | 64 void FetchResponseCookies(); |
65 | 65 |
66 void OnStartCompleted(int result); | 66 void OnStartCompleted(int result); |
(...skipping 14 matching lines...) Expand all Loading... |
81 bool read_in_progress_; | 81 bool read_in_progress_; |
82 | 82 |
83 // Keep a reference to the url request context to be sure it's not deleted | 83 // Keep a reference to the url request context to be sure it's not deleted |
84 // before us. | 84 // before us. |
85 scoped_refptr<URLRequestContext> context_; | 85 scoped_refptr<URLRequestContext> context_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 87 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
88 }; | 88 }; |
89 | 89 |
90 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 90 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
OLD | NEW |