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_BROWSER_LOADER_RESOURCE_LOADER_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_LOADER_DELEGATE_H_ |
6 #define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_DELEGATE_H_ | 6 #define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_DELEGATE_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 virtual void DidStartRequest(ResourceLoader* loader) = 0; | 27 virtual void DidStartRequest(ResourceLoader* loader) = 0; |
28 virtual void DidReceiveRedirect(ResourceLoader* loader, | 28 virtual void DidReceiveRedirect(ResourceLoader* loader, |
29 const GURL& new_url) = 0; | 29 const GURL& new_url) = 0; |
30 virtual void DidReceiveResponse(ResourceLoader* loader) = 0; | 30 virtual void DidReceiveResponse(ResourceLoader* loader) = 0; |
31 | 31 |
32 // This method informs the delegate that the loader is done, and the loader | 32 // This method informs the delegate that the loader is done, and the loader |
33 // expects to be destroyed as a side-effect of this call. | 33 // expects to be destroyed as a side-effect of this call. |
34 virtual void DidFinishLoading(ResourceLoader* loader) = 0; | 34 virtual void DidFinishLoading(ResourceLoader* loader) = 0; |
35 | 35 |
| 36 virtual void LoaderDestroyed(ResourceLoader* loader) = 0; |
| 37 |
36 protected: | 38 protected: |
37 virtual ~ResourceLoaderDelegate() {} | 39 virtual ~ResourceLoaderDelegate() {} |
38 }; | 40 }; |
39 | 41 |
40 } // namespace content | 42 } // namespace content |
41 | 43 |
42 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_DELEGATE_H_ | 44 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_DELEGATE_H_ |
OLD | NEW |