diff options
author | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-22 17:24:28 +0000 |
---|---|---|
committer | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-22 17:24:28 +0000 |
commit | 108f62e0b5a9b722c89346a192198b1da8e782dd (patch) | |
tree | 070347a1c736b6f832b7ae1d022db68e99bfe498 /net/url_request/url_request_http_job.h | |
parent | b1b945e8f3586a8d08acc9e7d29b4efe99606373 (diff) | |
download | chromium_src-108f62e0b5a9b722c89346a192198b1da8e782dd.zip chromium_src-108f62e0b5a9b722c89346a192198b1da8e782dd.tar.gz chromium_src-108f62e0b5a9b722c89346a192198b1da8e782dd.tar.bz2 |
Experimental integration of delta compression content encoding
The command line option "sdch-enable" enables support of sdch
and automtic lazy download of dictionaries. Optionally it
can select a singular domain to work from.
By default, all domains are enabled when the flag is used.
"-sdch-enable=".google.com" Enables it only for Google.
When the switch is not set on the command line, all this
code is completely disabled.
Still TBD:
a) Finish implementation of security details (much of it is in place)
b) Add tests for security details.
r=huanr,ajenjo,kmixter
Review URL: http://codereview.chromium.org/461
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2443 0039d316-1c4b-4281-b951-d872f2087c98
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_ |