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_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 // Informs the delegate that a response has started. | 103 // Informs the delegate that a response has started. |
104 virtual void OnResponseStarted( | 104 virtual void OnResponseStarted( |
105 net::URLRequest* request, | 105 net::URLRequest* request, |
106 ResourceContext* resource_context, | 106 ResourceContext* resource_context, |
107 ResourceResponse* response, | 107 ResourceResponse* response, |
108 IPC::Sender* sender); | 108 IPC::Sender* sender); |
109 | 109 |
110 // Informs the delegate that a request has been redirected. | 110 // Informs the delegate that a request has been redirected. |
111 virtual void OnRequestRedirected( | 111 virtual void OnRequestRedirected( |
| 112 const GURL& redirect_url, |
112 net::URLRequest* request, | 113 net::URLRequest* request, |
113 ResourceContext* resource_context, | 114 ResourceContext* resource_context, |
114 ResourceResponse* response); | 115 ResourceResponse* response); |
115 | 116 |
116 protected: | 117 protected: |
117 ResourceDispatcherHostDelegate(); | 118 ResourceDispatcherHostDelegate(); |
118 virtual ~ResourceDispatcherHostDelegate(); | 119 virtual ~ResourceDispatcherHostDelegate(); |
119 }; | 120 }; |
120 | 121 |
121 } // namespace content | 122 } // namespace content |
122 | 123 |
123 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 124 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
OLD | NEW |