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

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

Issue 18390: Change URLRequest to use a ref-counted buffer for actual IO.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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/url_request/url_request_file_job.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual bool IsSdchResponse() const; 46 virtual bool IsSdchResponse() const;
47 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); 47 virtual bool IsRedirectResponse(GURL* location, int* http_status_code);
48 virtual bool IsSafeRedirect(const GURL& location); 48 virtual bool IsSafeRedirect(const GURL& location);
49 virtual bool NeedsAuth(); 49 virtual bool NeedsAuth();
50 virtual void GetAuthChallengeInfo(scoped_refptr<net::AuthChallengeInfo>*); 50 virtual void GetAuthChallengeInfo(scoped_refptr<net::AuthChallengeInfo>*);
51 virtual void SetAuth(const std::wstring& username, 51 virtual void SetAuth(const std::wstring& username,
52 const std::wstring& password); 52 const std::wstring& password);
53 virtual void CancelAuth(); 53 virtual void CancelAuth();
54 virtual void ContinueDespiteLastError(); 54 virtual void ContinueDespiteLastError();
55 virtual bool GetMoreData(); 55 virtual bool GetMoreData();
56 virtual bool ReadRawData(char* buf, int buf_size, int *bytes_read); 56 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read);
57 57
58 // Shadows URLRequestJob's version of this method so we can grab cookies. 58 // Shadows URLRequestJob's version of this method so we can grab cookies.
59 void NotifyHeadersComplete(); 59 void NotifyHeadersComplete();
60 60
61 void DestroyTransaction(); 61 void DestroyTransaction();
62 void StartTransaction(); 62 void StartTransaction();
63 void AddExtraHeaders(); 63 void AddExtraHeaders();
64 void FetchResponseCookies(); 64 void FetchResponseCookies();
65 65
66 void OnStartCompleted(int result); 66 void OnStartCompleted(int result);
(...skipping 14 matching lines...) Expand all
81 bool read_in_progress_; 81 bool read_in_progress_;
82 82
83 // Keep a reference to the url request context to be sure it's not deleted 83 // Keep a reference to the url request context to be sure it's not deleted
84 // before us. 84 // before us.
85 scoped_refptr<URLRequestContext> context_; 85 scoped_refptr<URLRequestContext> context_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); 87 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob);
88 }; 88 };
89 89
90 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 90 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_file_job.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