Index: chrome/browser/renderer_host/dummy_resource_dispatcher_host_delegate.cc |
diff --git a/chrome/browser/renderer_host/dummy_resource_dispatcher_host_delegate.cc b/chrome/browser/renderer_host/dummy_resource_dispatcher_host_delegate.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..04b3f0ffa5a0d59928c9d8230a855abc5f6fc522 |
--- /dev/null |
+++ b/chrome/browser/renderer_host/dummy_resource_dispatcher_host_delegate.cc |
@@ -0,0 +1,111 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/renderer_host/dummy_resource_dispatcher_host_delegate.h" |
+ |
+bool DummyResourceDispatcherHostDelegate::ShouldBeginRequest( |
+ int child_id, |
+ int route_id, |
+ const std::string& method, |
+ const GURL& url, |
+ ResourceType::Type resource_type, |
+ const content::ResourceContext& resource_context, |
+ const content::Referrer& referrer) { |
+ return underlying_->ShouldBeginRequest( |
+ child_id, route_id, |
+ method, url, resource_type, |
+ resource_context, referrer); |
+} |
+ |
+ResourceHandler* DummyResourceDispatcherHostDelegate::RequestBeginning( |
+ ResourceHandler* handler, |
+ net::URLRequest* request, |
+ const content::ResourceContext& resource_context, |
+ bool is_subresource, |
+ int child_id, |
+ int route_id, |
+ bool is_continuation_of_transferred_request) { |
+ return underlying_->RequestBeginning( |
+ handler, request, resource_context, is_subresource, |
+ child_id, route_id, |
+ is_continuation_of_transferred_request); |
+} |
+ |
+ResourceHandler* DummyResourceDispatcherHostDelegate::DownloadStarting( |
+ ResourceHandler* handler, |
+ const content::ResourceContext& resource_context, |
+ net::URLRequest* request, |
+ int child_id, |
+ int route_id, |
+ int request_id, |
+ bool is_new_request) { |
+ return underlying_->DownloadStarting( |
+ handler, resource_context, request, |
+ child_id, route_id, request_id, is_new_request); |
+} |
+ |
+bool DummyResourceDispatcherHostDelegate::ShouldDeferStart( |
+ net::URLRequest* request, |
+ const content::ResourceContext& resource_context) { |
+ return underlying_->ShouldDeferStart(request, resource_context); |
+} |
+ |
+bool DummyResourceDispatcherHostDelegate::AcceptSSLClientCertificateRequest( |
+ net::URLRequest* request, |
+ net::SSLCertRequestInfo* cert_request_info) { |
+ return underlying_->AcceptSSLClientCertificateRequest( |
+ request, cert_request_info); |
+} |
+ |
+bool DummyResourceDispatcherHostDelegate::AcceptAuthRequest( |
+ net::URLRequest* request, |
+ net::AuthChallengeInfo* auth_info) { |
+ return underlying_->AcceptAuthRequest( |
+ request, auth_info); |
+} |
+ |
+content::ResourceDispatcherHostLoginDelegate* |
+DummyResourceDispatcherHostDelegate::CreateLoginDelegate( |
+ net::AuthChallengeInfo* auth_info, net::URLRequest* request) { |
+ return underlying_->CreateLoginDelegate(auth_info, request); |
+} |
+ |
+void DummyResourceDispatcherHostDelegate::HandleExternalProtocol( |
+ const GURL& url, |
+ int child_id, |
+ int route_id) { |
+ underlying_->HandleExternalProtocol(url, child_id, route_id); |
+} |
+ |
+bool DummyResourceDispatcherHostDelegate::ShouldForceDownloadResource( |
+ const GURL& url, const std::string& mime_type) { |
+ return underlying_->ShouldForceDownloadResource(url, mime_type); |
+} |
+ |
+void DummyResourceDispatcherHostDelegate::OnResponseStarted( |
+ net::URLRequest* request, |
+ content::ResourceResponse* response, |
+ ResourceMessageFilter* filter) { |
+ underlying_->OnResponseStarted(request, response, filter); |
+} |
+ |
+void DummyResourceDispatcherHostDelegate::OnRequestRedirected( |
+ net::URLRequest* request, |
+ content::ResourceResponse* response, |
+ ResourceMessageFilter* filter) { |
+ underlying_->OnRequestRedirected(request, response, filter); |
+} |
+ |
+DummyResourceDispatcherHostDelegate::DummyResourceDispatcherHostDelegate( |
+ content::ResourceDispatcherHostDelegate* underlying) |
+ : underlying_(underlying) { |
+} |
+ |
+DummyResourceDispatcherHostDelegate::~DummyResourceDispatcherHostDelegate() { |
+} |
+ |
+content::ResourceDispatcherHostDelegate* |
+DummyResourceDispatcherHostDelegate::underlying() { |
+ return underlying_; |
+} |