diff options
Diffstat (limited to 'net/url_request/url_request_http_job.h')
-rw-r--r-- | net/url_request/url_request_http_job.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/net/url_request/url_request_http_job.h b/net/url_request/url_request_http_job.h index 9312e35..908db2c 100644 --- a/net/url_request/url_request_http_job.h +++ b/net/url_request/url_request_http_job.h @@ -2,8 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H__ -#define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H__ +#ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ +#define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ + +#include <string> +#include <vector> #include "net/base/completion_callback.h" #include "net/http/http_request_info.h" @@ -24,7 +27,7 @@ class URLRequestHttpJob : public URLRequestJob { virtual ~URLRequestHttpJob(); protected: - URLRequestHttpJob(URLRequest* request); + explicit URLRequestHttpJob(URLRequest* request); // URLRequestJob methods: virtual void SetUpload(net::UploadData* upload); @@ -38,7 +41,7 @@ class URLRequestHttpJob : public URLRequestJob { virtual void GetResponseInfo(net::HttpResponseInfo* info); virtual bool GetResponseCookies(std::vector<std::string>* cookies); virtual int GetResponseCode(); - virtual bool GetContentEncoding(std::string* encoding_type); + virtual bool GetContentEncodings(std::vector<std::string>* encoding_type); virtual bool IsRedirectResponse(GURL* location, int* http_status_code); virtual bool IsSafeRedirect(const GURL& location); virtual bool NeedsAuth(); @@ -77,12 +80,11 @@ class URLRequestHttpJob : public URLRequestJob { bool read_in_progress_; - // Keep a reference to the url request context to be sure it's not - // deleted before us. + // Keep a reference to the url request context to be sure it's not deleted + // before us. scoped_refptr<URLRequestContext> context_; - DISALLOW_EVIL_CONSTRUCTORS(URLRequestHttpJob); + DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); }; -#endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H__ - +#endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |