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 23 matching lines...) Expand all Loading... |
34 virtual void SetExtraRequestHeaders(const std::string& headers); | 34 virtual void SetExtraRequestHeaders(const std::string& headers); |
35 virtual void Start(); | 35 virtual void Start(); |
36 virtual void Kill(); | 36 virtual void Kill(); |
37 virtual net::LoadState GetLoadState() const; | 37 virtual net::LoadState GetLoadState() const; |
38 virtual uint64 GetUploadProgress() const; | 38 virtual uint64 GetUploadProgress() const; |
39 virtual bool GetMimeType(std::string* mime_type); | 39 virtual bool GetMimeType(std::string* mime_type); |
40 virtual bool GetCharset(std::string* charset); | 40 virtual bool GetCharset(std::string* charset); |
41 virtual void GetResponseInfo(net::HttpResponseInfo* info); | 41 virtual void GetResponseInfo(net::HttpResponseInfo* info); |
42 virtual bool GetResponseCookies(std::vector<std::string>* cookies); | 42 virtual bool GetResponseCookies(std::vector<std::string>* cookies); |
43 virtual int GetResponseCode(); | 43 virtual int GetResponseCode(); |
44 virtual bool GetContentEncodings(std::vector<std::string>* encoding_type); | 44 virtual bool GetContentEncodings( |
| 45 std::vector<Filter::FilterType>* encoding_type); |
45 virtual bool IsSdchResponse() const; | 46 virtual bool IsSdchResponse() const; |
46 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); | 47 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); |
47 virtual bool IsSafeRedirect(const GURL& location); | 48 virtual bool IsSafeRedirect(const GURL& location); |
48 virtual bool NeedsAuth(); | 49 virtual bool NeedsAuth(); |
49 virtual void GetAuthChallengeInfo(scoped_refptr<net::AuthChallengeInfo>*); | 50 virtual void GetAuthChallengeInfo(scoped_refptr<net::AuthChallengeInfo>*); |
50 virtual void GetCachedAuthData(const net::AuthChallengeInfo& auth_info, | 51 virtual void GetCachedAuthData(const net::AuthChallengeInfo& auth_info, |
51 scoped_refptr<net::AuthData>* auth_data); | 52 scoped_refptr<net::AuthData>* auth_data); |
52 virtual void SetAuth(const std::wstring& username, | 53 virtual void SetAuth(const std::wstring& username, |
53 const std::wstring& password); | 54 const std::wstring& password); |
54 virtual void CancelAuth(); | 55 virtual void CancelAuth(); |
(...skipping 27 matching lines...) Expand all Loading... |
82 bool read_in_progress_; | 83 bool read_in_progress_; |
83 | 84 |
84 // Keep a reference to the url request context to be sure it's not deleted | 85 // Keep a reference to the url request context to be sure it's not deleted |
85 // before us. | 86 // before us. |
86 scoped_refptr<URLRequestContext> context_; | 87 scoped_refptr<URLRequestContext> context_; |
87 | 88 |
88 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 89 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
89 }; | 90 }; |
90 | 91 |
91 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 92 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
OLD | NEW |