Chromium Code Reviews| Index: content/browser/loader/loader_delegate.h |
| diff --git a/content/browser/loader/loader_delegate.h b/content/browser/loader/loader_delegate.h |
| index d92e668dc46947f15997e03ff9bc368b8597224d..7912b5a113b7cf27beb8bf2377edad0b39e8fec4 100644 |
| --- a/content/browser/loader/loader_delegate.h |
| +++ b/content/browser/loader/loader_delegate.h |
| @@ -7,6 +7,10 @@ |
| #include <inttypes.h> |
| +#include <memory> |
| + |
| +#include "content/common/content_export.h" |
| +#include "content/public/browser/resource_request_details.h" |
| #include "net/base/load_states.h" |
| class GURL; |
| @@ -20,7 +24,7 @@ namespace content { |
| // networking service. All methods in this interface should be asynchronous, |
| // since eventually this will be a Mojo interface. See https://crbug.com/622050 |
|
mmenke
2016/06/29 15:17:13
In a mojo world, will we still be using render_pro
scottmg
2016/06/29 17:55:40
I... have no idea :) I do find all the styles of i
|
| // and https://crbug.com/598073. |
| -class LoaderDelegate { |
| +class CONTENT_EXPORT LoaderDelegate { |
| public: |
| virtual ~LoaderDelegate() {} |
| @@ -32,6 +36,18 @@ class LoaderDelegate { |
| const net::LoadStateWithParam& load_state, |
| uint64_t upload_position, |
| uint64_t upload_size) = 0; |
| + |
| + // Notification that a response has been received for a resource request. |
| + virtual void DidGetResourceResponseStart( |
| + int render_process_id, |
| + int render_frame_host, |
| + std::unique_ptr<ResourceRequestDetails> details) = 0; |
| + |
| + // Notification that a redirect was received while requesting a resource. |
| + virtual void DidGetRedirectForResourceRequest( |
| + int render_process_id, |
| + int render_frame_host, |
| + std::unique_ptr<ResourceRedirectDetails> details) = 0; |
| }; |
| } // namespace content |