Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Side by Side Diff: net/url_request/url_request_http_job.h

Issue 56043: Use HTTP status return code to make SDCH handling more robust... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/sdch_filter_unittest.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 24 matching lines...) Expand all
35 virtual void SetUpload(net::UploadData* upload); 35 virtual void SetUpload(net::UploadData* upload);
36 virtual void SetExtraRequestHeaders(const std::string& headers); 36 virtual void SetExtraRequestHeaders(const std::string& headers);
37 virtual void Start(); 37 virtual void Start();
38 virtual void Kill(); 38 virtual void Kill();
39 virtual net::LoadState GetLoadState() const; 39 virtual net::LoadState GetLoadState() const;
40 virtual uint64 GetUploadProgress() const; 40 virtual uint64 GetUploadProgress() const;
41 virtual bool GetMimeType(std::string* mime_type) const; 41 virtual bool GetMimeType(std::string* mime_type) const;
42 virtual bool GetCharset(std::string* charset); 42 virtual bool GetCharset(std::string* charset);
43 virtual void GetResponseInfo(net::HttpResponseInfo* info); 43 virtual void GetResponseInfo(net::HttpResponseInfo* info);
44 virtual bool GetResponseCookies(std::vector<std::string>* cookies); 44 virtual bool GetResponseCookies(std::vector<std::string>* cookies);
45 virtual int GetResponseCode(); 45 virtual int GetResponseCode() const;
46 virtual bool GetContentEncodings( 46 virtual bool GetContentEncodings(
47 std::vector<Filter::FilterType>* encoding_type); 47 std::vector<Filter::FilterType>* encoding_type);
48 virtual bool IsSdchResponse() const; 48 virtual bool IsSdchResponse() const;
49 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); 49 virtual bool IsRedirectResponse(GURL* location, int* http_status_code);
50 virtual bool IsSafeRedirect(const GURL& location); 50 virtual bool IsSafeRedirect(const GURL& location);
51 virtual bool NeedsAuth(); 51 virtual bool NeedsAuth();
52 virtual void GetAuthChallengeInfo(scoped_refptr<net::AuthChallengeInfo>*); 52 virtual void GetAuthChallengeInfo(scoped_refptr<net::AuthChallengeInfo>*);
53 virtual void SetAuth(const std::wstring& username, 53 virtual void SetAuth(const std::wstring& username,
54 const std::wstring& password); 54 const std::wstring& password);
55 virtual void CancelAuth(); 55 virtual void CancelAuth();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 GURL sdch_dictionary_url_; 90 GURL sdch_dictionary_url_;
91 91
92 // Keep a reference to the url request context to be sure it's not deleted 92 // Keep a reference to the url request context to be sure it's not deleted
93 // before us. 93 // before us.
94 scoped_refptr<URLRequestContext> context_; 94 scoped_refptr<URLRequestContext> context_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); 96 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob);
97 }; 97 };
98 98
99 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 99 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
OLDNEW
« no previous file with comments | « net/base/sdch_filter_unittest.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698