diff options
author | maruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 12:27:03 +0000 |
---|---|---|
committer | maruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 12:27:03 +0000 |
commit | 1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf (patch) | |
tree | b78be07dbada3ac0f6d2435558e4a6aaba198ffc /net/url_request | |
parent | ea15e98a9353494df754a11fb49f0e4b8c0d4789 (diff) | |
download | chromium_src-1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf.zip chromium_src-1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf.tar.gz chromium_src-1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf.tar.bz2 |
Large patch set (159 files total) to cleanup the includes.
- Slightly reduce the size of the generated .lib files ~3%.
- Reduce the number of implicit and explicit atl and windows includes. hooray!
- Help incremental build by reducing the number of unnecessary included files.
- Split some template class in two, one base class for the common code and the specialization that inherits from the base class.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@937 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r-- | net/url_request/url_request_job.cc | 27 | ||||
-rw-r--r-- | net/url_request/url_request_job.h | 27 |
2 files changed, 32 insertions, 22 deletions
diff --git a/net/url_request/url_request_job.cc b/net/url_request/url_request_job.cc index 628038f..21c91c8 100644 --- a/net/url_request/url_request_job.cc +++ b/net/url_request/url_request_job.cc @@ -80,6 +80,33 @@ void URLRequestJob::SetupFilter() { } } +void URLRequestJob::GetAuthChallengeInfo( + scoped_refptr<net::AuthChallengeInfo>* auth_info) { + // This will only be called if NeedsAuth() returns true, in which + // case the derived class should implement this! + NOTREACHED(); +} + +void URLRequestJob::SetAuth(const std::wstring& username, + const std::wstring& password) { + // This will only be called if NeedsAuth() returns true, in which + // case the derived class should implement this! + NOTREACHED(); +} + +void URLRequestJob::CancelAuth() { + // This will only be called if NeedsAuth() returns true, in which + // case the derived class should implement this! + NOTREACHED(); +} + +void URLRequestJob::ContinueDespiteLastError() { + // Implementations should know how to recover from errors they generate. + // If this code was reached, we are trying to recover from an error that + // we don't know how to recover from. + NOTREACHED(); +} + // This function calls ReadData to get stream data. If a filter exists, passes // the data to the attached filter. Then returns the output from filter back to // the caller. diff --git a/net/url_request/url_request_job.h b/net/url_request/url_request_job.h index 7ceaa55..ed5cfba 100644 --- a/net/url_request/url_request_job.h +++ b/net/url_request/url_request_job.h @@ -171,11 +171,7 @@ class URLRequestJob : public base::RefCountedThreadSafe<URLRequestJob> { // Fills the authentication info with the server's response. virtual void GetAuthChallengeInfo( - scoped_refptr<net::AuthChallengeInfo>* auth_info) { - // This will only be called if NeedsAuth() returns true, in which - // case the derived class should implement this! - NOTREACHED(); - } + scoped_refptr<net::AuthChallengeInfo>* auth_info); // Returns cached auth data for the auth challenge. Returns NULL if there // is no auth cache or if the auth cache doesn't have the auth data for @@ -187,26 +183,13 @@ class URLRequestJob : public base::RefCountedThreadSafe<URLRequestJob> { // Resend the request with authentication credentials. virtual void SetAuth(const std::wstring& username, - const std::wstring& password) { - // This will only be called if NeedsAuth() returns true, in which - // case the derived class should implement this! - NOTREACHED(); - } + const std::wstring& password); // Display the error page without asking for credentials again. - virtual void CancelAuth() { - // This will only be called if NeedsAuth() returns true, in which - // case the derived class should implement this! - NOTREACHED(); - } + virtual void CancelAuth(); // Continue processing the request ignoring the last error. - virtual void ContinueDespiteLastError() { - // Implementations should know how to recover from errors they generate. - // If this code was reached, we are trying to recover from an error that - // we don't know how to recover from. - NOTREACHED(); - } + virtual void ContinueDespiteLastError(); // Returns true if the Job is done producing response data and has called // NotifyDone on the request. @@ -333,7 +316,7 @@ class URLRequestJob : public base::RefCountedThreadSafe<URLRequestJob> { // Expected content size int64 expected_content_size_; - DISALLOW_EVIL_CONSTRUCTORS(URLRequestJob); + DISALLOW_COPY_AND_ASSIGN(URLRequestJob); }; #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |