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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 class URLRequest; | 24 class URLRequest; |
25 } | 25 } |
26 | 26 |
27 namespace content { | 27 namespace content { |
28 | 28 |
29 class AppCacheService; | 29 class AppCacheService; |
30 class NavigationData; | 30 class NavigationData; |
31 class ResourceContext; | 31 class ResourceContext; |
32 class ResourceDispatcherHostLoginDelegate; | 32 class ResourceDispatcherHostLoginDelegate; |
33 class ResourceThrottle; | 33 class ResourceThrottle; |
34 struct Referrer; | |
35 struct ResourceResponse; | 34 struct ResourceResponse; |
36 struct StreamInfo; | 35 struct StreamInfo; |
37 | 36 |
38 // Interface that the embedder provides to ResourceDispatcherHost to allow | 37 // Interface that the embedder provides to ResourceDispatcherHost to allow |
39 // observing and modifying requests. | 38 // observing and modifying requests. |
40 class CONTENT_EXPORT ResourceDispatcherHostDelegate { | 39 class CONTENT_EXPORT ResourceDispatcherHostDelegate { |
41 public: | 40 public: |
42 // Called when a request begins. Return false to abort the request. | 41 // Called when a request begins. Return false to abort the request. |
43 virtual bool ShouldBeginRequest(const std::string& method, | 42 virtual bool ShouldBeginRequest(const std::string& method, |
44 const GURL& url, | 43 const GURL& url, |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 virtual void OnAbortedFrameLoad(const GURL& url, | 140 virtual void OnAbortedFrameLoad(const GURL& url, |
142 base::TimeDelta request_loading_time); | 141 base::TimeDelta request_loading_time); |
143 | 142 |
144 protected: | 143 protected: |
145 virtual ~ResourceDispatcherHostDelegate(); | 144 virtual ~ResourceDispatcherHostDelegate(); |
146 }; | 145 }; |
147 | 146 |
148 } // namespace content | 147 } // namespace content |
149 | 148 |
150 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 149 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
OLD | NEW |