| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_SHELL_SHELL_NETWORK_DELEGATE_H_ | 5 #ifndef CONTENT_SHELL_SHELL_NETWORK_DELEGATE_H_ |
| 6 #define CONTENT_SHELL_SHELL_NETWORK_DELEGATE_H_ | 6 #define CONTENT_SHELL_SHELL_NETWORK_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "net/base/network_delegate.h" | 10 #include "net/base/network_delegate.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 const net::CompletionCallback& callback, | 22 const net::CompletionCallback& callback, |
| 23 GURL* new_url) OVERRIDE; | 23 GURL* new_url) OVERRIDE; |
| 24 virtual int OnBeforeSendHeaders(net::URLRequest* request, | 24 virtual int OnBeforeSendHeaders(net::URLRequest* request, |
| 25 const net::CompletionCallback& callback, | 25 const net::CompletionCallback& callback, |
| 26 net::HttpRequestHeaders* headers) OVERRIDE; | 26 net::HttpRequestHeaders* headers) OVERRIDE; |
| 27 virtual void OnSendHeaders(net::URLRequest* request, | 27 virtual void OnSendHeaders(net::URLRequest* request, |
| 28 const net::HttpRequestHeaders& headers) OVERRIDE; | 28 const net::HttpRequestHeaders& headers) OVERRIDE; |
| 29 virtual int OnHeadersReceived( | 29 virtual int OnHeadersReceived( |
| 30 net::URLRequest* request, | 30 net::URLRequest* request, |
| 31 const net::CompletionCallback& callback, | 31 const net::CompletionCallback& callback, |
| 32 net::HttpResponseHeaders* original_response_headers, | 32 const net::HttpResponseHeaders* original_response_headers, |
| 33 scoped_refptr<net::HttpResponseHeaders>* | 33 scoped_refptr<net::HttpResponseHeaders>* |
| 34 override_response_headers) OVERRIDE; | 34 override_response_headers) OVERRIDE; |
| 35 virtual void OnBeforeRedirect(net::URLRequest* request, | 35 virtual void OnBeforeRedirect(net::URLRequest* request, |
| 36 const GURL& new_location) OVERRIDE; | 36 const GURL& new_location) OVERRIDE; |
| 37 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; | 37 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; |
| 38 virtual void OnRawBytesRead(const net::URLRequest& request, | 38 virtual void OnRawBytesRead(const net::URLRequest& request, |
| 39 int bytes_read) OVERRIDE; | 39 int bytes_read) OVERRIDE; |
| 40 virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE; | 40 virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE; |
| 41 virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE; | 41 virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE; |
| 42 virtual void OnPACScriptError(int line_number, | 42 virtual void OnPACScriptError(int line_number, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 60 const net::CompletionCallback& callback) OVERRIDE; | 60 const net::CompletionCallback& callback) OVERRIDE; |
| 61 virtual void OnRequestWaitStateChange(const net::URLRequest& request, | 61 virtual void OnRequestWaitStateChange(const net::URLRequest& request, |
| 62 RequestWaitState state) OVERRIDE; | 62 RequestWaitState state) OVERRIDE; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate); | 64 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace content | 67 } // namespace content |
| 68 | 68 |
| 69 #endif // CONTENT_SHELL_SHELL_NETWORK_DELEGATE_H_ | 69 #endif // CONTENT_SHELL_SHELL_NETWORK_DELEGATE_H_ |
| OLD | NEW |