| 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 <vector> | 9 #include <vector> |
| 9 | 10 |
| 10 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 11 #include "net/base/auth.h" | 12 #include "net/base/auth.h" |
| 12 #include "net/base/completion_callback.h" | 13 #include "net/base/completion_callback.h" |
| 13 #include "net/http/http_request_info.h" | 14 #include "net/http/http_request_info.h" |
| 14 #include "net/url_request/url_request_job.h" | 15 #include "net/url_request/url_request_job.h" |
| 15 | 16 |
| 16 namespace net { | 17 namespace net { |
| 17 class HttpResponseInfo; | 18 class HttpResponseInfo; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 30 protected: | 31 protected: |
| 31 explicit URLRequestHttpJob(URLRequest* request); | 32 explicit URLRequestHttpJob(URLRequest* request); |
| 32 | 33 |
| 33 // URLRequestJob methods: | 34 // URLRequestJob methods: |
| 34 virtual void SetUpload(net::UploadData* upload); | 35 virtual void SetUpload(net::UploadData* upload); |
| 35 virtual void SetExtraRequestHeaders(const std::string& headers); | 36 virtual void SetExtraRequestHeaders(const std::string& headers); |
| 36 virtual void Start(); | 37 virtual void Start(); |
| 37 virtual void Kill(); | 38 virtual void Kill(); |
| 38 virtual net::LoadState GetLoadState() const; | 39 virtual net::LoadState GetLoadState() const; |
| 39 virtual uint64 GetUploadProgress() const; | 40 virtual uint64 GetUploadProgress() const; |
| 40 virtual bool GetMimeType(std::string* mime_type); | 41 virtual bool GetMimeType(std::string* mime_type) const; |
| 41 virtual bool GetCharset(std::string* charset); | 42 virtual bool GetCharset(std::string* charset); |
| 42 virtual void GetResponseInfo(net::HttpResponseInfo* info); | 43 virtual void GetResponseInfo(net::HttpResponseInfo* info); |
| 43 virtual bool GetResponseCookies(std::vector<std::string>* cookies); | 44 virtual bool GetResponseCookies(std::vector<std::string>* cookies); |
| 44 virtual int GetResponseCode(); | 45 virtual int GetResponseCode(); |
| 45 virtual bool GetContentEncodings( | 46 virtual bool GetContentEncodings( |
| 46 std::vector<Filter::FilterType>* encoding_type); | 47 std::vector<Filter::FilterType>* encoding_type); |
| 47 virtual bool IsSdchResponse() const; | 48 virtual bool IsSdchResponse() const; |
| 48 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); | 49 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); |
| 49 virtual bool IsSafeRedirect(const GURL& location); | 50 virtual bool IsSafeRedirect(const GURL& location); |
| 50 virtual bool NeedsAuth(); | 51 virtual bool NeedsAuth(); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 GURL sdch_dictionary_url_; | 86 GURL sdch_dictionary_url_; |
| 86 | 87 |
| 87 // Keep a reference to the url request context to be sure it's not deleted | 88 // Keep a reference to the url request context to be sure it's not deleted |
| 88 // before us. | 89 // before us. |
| 89 scoped_refptr<URLRequestContext> context_; | 90 scoped_refptr<URLRequestContext> context_; |
| 90 | 91 |
| 91 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 92 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 92 }; | 93 }; |
| 93 | 94 |
| 94 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 95 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |