#include "content/public/browser/resource_dispatcher_host_delegate.h"
-#include "content/public/browser/stream_handle.h"
+#include "content/public/browser/stream_info.h"
namespace content {
bool ResourceDispatcherHostDelegate::ShouldBeginRequest(
- int child_id,
- int route_id,
const std::string& method,
const GURL& url,
- ResourceType::Type resource_type,
+ ResourceType resource_type,
ResourceContext* resource_context) {
return true;
}
void ResourceDispatcherHostDelegate::RequestBeginning(
net::URLRequest* request,
ResourceContext* resource_context,
- appcache::AppCacheService* appcache_service,
- ResourceType::Type resource_type,
- int child_id,
- int route_id,
+ AppCacheService* appcache_service,
+ ResourceType resource_type,
ScopedVector<ResourceThrottle>* throttles) {
}
}
bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
- content::ResourceContext* resource_context,
- const GURL& url,
+ net::URLRequest* request,
const std::string& mime_type,
GURL* origin,
- std::string* target_id) {
+ std::string* payload) {
return false;
}
void ResourceDispatcherHostDelegate::OnStreamCreated(
- content::ResourceContext* resource_context,
- int render_process_id,
- int render_view_id,
- const std::string& target_id,
- scoped_ptr<StreamHandle> stream,
- int64 expected_content_size) {
+ net::URLRequest* request,
+ scoped_ptr<content::StreamInfo> stream) {
}
void ResourceDispatcherHostDelegate::OnResponseStarted(