| 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 "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "webkit/common/resource_type.h" | 13 #include "webkit/common/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 { | 18 namespace content { |
| 19 class AppCacheService; | 19 class AppCacheService; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace content { | 22 namespace content { |
| 23 class ResourceContext; | 23 class ResourceContext; |
| 24 class ResourceThrottle; | 24 class ResourceThrottle; |
| 25 class StreamHandle; | 25 class StreamHandle; |
| 26 struct Referrer; | 26 struct Referrer; |
| 27 struct ResourceResponse; | 27 struct ResourceResponse; |
| 28 } | 28 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 51 const std::string& method, | 51 const std::string& method, |
| 52 const GURL& url, | 52 const GURL& url, |
| 53 ResourceType::Type resource_type, | 53 ResourceType::Type resource_type, |
| 54 ResourceContext* resource_context); | 54 ResourceContext* resource_context); |
| 55 | 55 |
| 56 // Called after ShouldBeginRequest to allow the embedder to add resource | 56 // Called after ShouldBeginRequest to allow the embedder to add resource |
| 57 // throttles. | 57 // throttles. |
| 58 virtual void RequestBeginning( | 58 virtual void RequestBeginning( |
| 59 net::URLRequest* request, | 59 net::URLRequest* request, |
| 60 ResourceContext* resource_context, | 60 ResourceContext* resource_context, |
| 61 appcache::AppCacheService* appcache_service, | 61 AppCacheService* appcache_service, |
| 62 ResourceType::Type resource_type, | 62 ResourceType::Type resource_type, |
| 63 int child_id, | 63 int child_id, |
| 64 int route_id, | 64 int route_id, |
| 65 ScopedVector<ResourceThrottle>* throttles); | 65 ScopedVector<ResourceThrottle>* throttles); |
| 66 | 66 |
| 67 // Allows an embedder to add additional resource handlers for a download. | 67 // Allows an embedder to add additional resource handlers for a download. |
| 68 // |must_download| is set if the request must be handled as a download. | 68 // |must_download| is set if the request must be handled as a download. |
| 69 virtual void DownloadStarting( | 69 virtual void DownloadStarting( |
| 70 net::URLRequest* request, | 70 net::URLRequest* request, |
| 71 ResourceContext* resource_context, | 71 ResourceContext* resource_context, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 virtual void RequestComplete(net::URLRequest* url_request); | 137 virtual void RequestComplete(net::URLRequest* url_request); |
| 138 | 138 |
| 139 protected: | 139 protected: |
| 140 ResourceDispatcherHostDelegate(); | 140 ResourceDispatcherHostDelegate(); |
| 141 virtual ~ResourceDispatcherHostDelegate(); | 141 virtual ~ResourceDispatcherHostDelegate(); |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace content | 144 } // namespace content |
| 145 | 145 |
| 146 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 146 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
| OLD | NEW |