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" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "ipc/ipc_message.h" | 12 #include "ipc/ipc_message.h" |
13 #include "webkit/glue/resource_type.h" | 13 #include "webkit/glue/resource_type.h" |
14 | 14 |
15 class GURL; | 15 class GURL; |
16 template <class T> class ScopedVector; | 16 template <class T> class ScopedVector; |
17 | 17 |
| 18 namespace appcache { |
| 19 class AppCacheService; |
| 20 } |
| 21 |
18 namespace content { | 22 namespace content { |
19 class ResourceContext; | 23 class ResourceContext; |
20 class ResourceThrottle; | 24 class ResourceThrottle; |
21 struct Referrer; | 25 struct Referrer; |
22 struct ResourceResponse; | 26 struct ResourceResponse; |
23 } | 27 } |
24 | 28 |
25 namespace net { | 29 namespace net { |
26 class AuthChallengeInfo; | 30 class AuthChallengeInfo; |
27 class SSLCertRequestInfo; | 31 class SSLCertRequestInfo; |
(...skipping 16 matching lines...) Expand all Loading... |
44 const GURL& url, | 48 const GURL& url, |
45 ResourceType::Type resource_type, | 49 ResourceType::Type resource_type, |
46 ResourceContext* resource_context, | 50 ResourceContext* resource_context, |
47 const Referrer& referrer); | 51 const Referrer& referrer); |
48 | 52 |
49 // Called after ShouldBeginRequest to allow the embedder to add resource | 53 // Called after ShouldBeginRequest to allow the embedder to add resource |
50 // throttles. | 54 // throttles. |
51 virtual void RequestBeginning( | 55 virtual void RequestBeginning( |
52 net::URLRequest* request, | 56 net::URLRequest* request, |
53 ResourceContext* resource_context, | 57 ResourceContext* resource_context, |
| 58 appcache::AppCacheService* appcache_service, |
54 ResourceType::Type resource_type, | 59 ResourceType::Type resource_type, |
55 int child_id, | 60 int child_id, |
56 int route_id, | 61 int route_id, |
57 bool is_continuation_of_transferred_request, | 62 bool is_continuation_of_transferred_request, |
58 ScopedVector<ResourceThrottle>* throttles); | 63 ScopedVector<ResourceThrottle>* throttles); |
59 | 64 |
60 // Allows an embedder to add additional resource handlers for a download. | 65 // Allows an embedder to add additional resource handlers for a download. |
61 // |is_new_request| is true if this is a request that is just starting, i.e. | 66 // |is_new_request| is true if this is a request that is just starting, i.e. |
62 // the content layer has just added its own resource handlers; it's false if | 67 // the content layer has just added its own resource handlers; it's false if |
63 // this was originally a non-download request that had some resource handlers | 68 // this was originally a non-download request that had some resource handlers |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 ResourceResponse* response); | 120 ResourceResponse* response); |
116 | 121 |
117 protected: | 122 protected: |
118 ResourceDispatcherHostDelegate(); | 123 ResourceDispatcherHostDelegate(); |
119 virtual ~ResourceDispatcherHostDelegate(); | 124 virtual ~ResourceDispatcherHostDelegate(); |
120 }; | 125 }; |
121 | 126 |
122 } // namespace content | 127 } // namespace content |
123 | 128 |
124 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 129 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
OLD | NEW |