Chromium Code Reviews| Index: net/base/network_delegate.cc |
| diff --git a/net/base/network_delegate.cc b/net/base/network_delegate.cc |
| index 5a69b863e62ef8394d9e646fbc102aea7d8f47bc..9d736ff9655303336f7d8e2f271399a94be39108 100644 |
| --- a/net/base/network_delegate.cc |
| +++ b/net/base/network_delegate.cc |
| @@ -6,6 +6,7 @@ |
| #include "base/logging.h" |
| #include "net/base/load_flags.h" |
| +#include "net/base/net_errors.h" |
| #include "net/url_request/url_request.h" |
| namespace net { |
| @@ -125,13 +126,95 @@ bool NetworkDelegate::CanEnablePrivacyMode( |
| return OnCanEnablePrivacyMode(url, first_party_for_cookies); |
| } |
| +int NetworkDelegate::OnBeforeURLRequest(URLRequest* request, |
| + const CompletionCallback& callback, |
| + GURL* new_url) { |
| + return net::OK; |
|
willchan no longer on Chromium
2013/10/24 22:03:36
no need for net:: prefix everywhere here, since it
Aaron Boodman
2013/10/25 21:19:50
Done.
|
| +} |
| + |
| +int NetworkDelegate::OnBeforeSendHeaders(URLRequest* request, |
| + const CompletionCallback& callback, |
| + HttpRequestHeaders* headers) { |
| + return net::OK; |
| +} |
| + |
| +void NetworkDelegate::OnSendHeaders(URLRequest* request, |
| + const HttpRequestHeaders& headers) { |
| +} |
| + |
| +int NetworkDelegate::OnHeadersReceived( |
| + URLRequest* request, |
| + const CompletionCallback& callback, |
| + const HttpResponseHeaders* original_response_headers, |
| + scoped_refptr<HttpResponseHeaders>* override_response_headers) { |
| + return net::OK; |
| +} |
| + |
| +void NetworkDelegate::OnBeforeRedirect(URLRequest* request, |
| + const GURL& new_location) { |
| +} |
| + |
| +void NetworkDelegate::OnResponseStarted(URLRequest* request) { |
| +} |
| + |
| +void NetworkDelegate::OnRawBytesRead(const URLRequest& request, |
| + int bytes_read) { |
| +} |
| + |
| +void NetworkDelegate::OnCompleted(URLRequest* request, bool started) { |
| +} |
| + |
| +void NetworkDelegate::OnURLRequestDestroyed(URLRequest* request) { |
| +} |
| + |
| +void NetworkDelegate::OnPACScriptError(int line_number, |
| + const base::string16& error) { |
| +} |
| + |
| +NetworkDelegate::AuthRequiredResponse NetworkDelegate::OnAuthRequired( |
| + URLRequest* request, |
| + const AuthChallengeInfo& auth_info, |
| + const AuthCallback& callback, |
| + AuthCredentials* credentials) { |
| + return AUTH_REQUIRED_RESPONSE_NO_ACTION; |
| +} |
| + |
| +bool NetworkDelegate::OnCanGetCookies(const URLRequest& request, |
| + const CookieList& cookie_list) { |
| + return true; |
| +} |
| + |
| +bool NetworkDelegate::OnCanSetCookie(const URLRequest& request, |
| + const std::string& cookie_line, |
| + CookieOptions* options) { |
| + return true; |
| +} |
| + |
| +bool NetworkDelegate::OnCanAccessFile(const URLRequest& request, |
| + const base::FilePath& path) const { |
| + return false; |
| +} |
| + |
| +bool NetworkDelegate::OnCanThrottleRequest(const URLRequest& request) const { |
| + return false; |
| +} |
| + |
| bool NetworkDelegate::OnCanEnablePrivacyMode( |
| const GURL& url, |
| const GURL& first_party_for_cookies) const { |
| - // Default implementation disables privacy mode. |
| return false; |
| } |
| +int NetworkDelegate::OnBeforeSocketStreamConnect( |
| + SocketStream* socket, |
| + const CompletionCallback& callback) { |
| + return net::OK; |
| +} |
| + |
| +void NetworkDelegate::OnRequestWaitStateChange(const URLRequest& request, |
| + RequestWaitState state) { |
| +} |
| + |
| int NetworkDelegate::NotifyBeforeSocketStreamConnect( |
| SocketStream* socket, |
| const CompletionCallback& callback) { |