Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / public / browser / resource_dispatcher_host_delegate.cc
index bf92b25..49eece0 100644 (file)
@@ -4,16 +4,14 @@
 
 #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;
 }
@@ -21,10 +19,8 @@ bool ResourceDispatcherHostDelegate::ShouldBeginRequest(
 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) {
 }
 
@@ -59,21 +55,16 @@ bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource(
 }
 
 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(