| Index: content/browser/loader/resource_dispatcher_host_impl.cc
|
| diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
|
| index 08bf5773cf678a2afd74e9fd0a26891f3b54e82d..ab59a0395ddc70a0e4d984cc31697b98e34515b0 100644
|
| --- a/content/browser/loader/resource_dispatcher_host_impl.cc
|
| +++ b/content/browser/loader/resource_dispatcher_host_impl.cc
|
| @@ -601,18 +601,22 @@ ResourceDispatcherHostImpl::CreateResourceHandlerForDownload(
|
|
|
| scoped_ptr<ResourceHandler>
|
| ResourceDispatcherHostImpl::MaybeInterceptAsStream(net::URLRequest* request,
|
| - ResourceResponse* response) {
|
| + ResourceResponse* response,
|
| + std::string* payload) {
|
| ResourceRequestInfoImpl* info = ResourceRequestInfoImpl::ForRequest(request);
|
| const std::string& mime_type = response->head.mime_type;
|
|
|
| GURL origin;
|
| std::string target_id;
|
| + std::string view_id;
|
| if (!delegate_ ||
|
| !delegate_->ShouldInterceptResourceAsStream(info->GetContext(),
|
| request->url(),
|
| mime_type,
|
| &origin,
|
| - &target_id)) {
|
| + &target_id,
|
| + payload,
|
| + &view_id)) {
|
| return scoped_ptr<ResourceHandler>();
|
| }
|
|
|
| @@ -630,6 +634,7 @@ ResourceDispatcherHostImpl::MaybeInterceptAsStream(net::URLRequest* request,
|
| info->GetChildID(),
|
| info->GetRouteID(),
|
| target_id,
|
| + view_id,
|
| handler->stream()->CreateHandle(
|
| request->url(),
|
| mime_type,
|
|
|