resource_dispatcher_host_delegate.cc revision 5821806d5e7f356e8fa4b058a389a808ea183019
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 3// found in the LICENSE file. 4 5#include "content/public/browser/resource_dispatcher_host_delegate.h" 6 7namespace content { 8 9bool ResourceDispatcherHostDelegate::ShouldBeginRequest( 10 int child_id, 11 int route_id, 12 const std::string& method, 13 const GURL& url, 14 ResourceType::Type resource_type, 15 ResourceContext* resource_context, 16 const Referrer& referrer) { 17 return true; 18} 19 20void ResourceDispatcherHostDelegate::RequestBeginning( 21 net::URLRequest* request, 22 ResourceContext* resource_context, 23 appcache::AppCacheService* appcache_service, 24 ResourceType::Type resource_type, 25 int child_id, 26 int route_id, 27 bool is_continuation_of_transferred_request, 28 ScopedVector<ResourceThrottle>* throttles) { 29} 30 31void ResourceDispatcherHostDelegate::DownloadStarting( 32 net::URLRequest* request, 33 ResourceContext* resource_context, 34 int child_id, 35 int route_id, 36 int request_id, 37 bool is_content_initiated, 38 ScopedVector<ResourceThrottle>* throttles) { 39} 40 41bool ResourceDispatcherHostDelegate::AcceptSSLClientCertificateRequest( 42 net::URLRequest* request, 43 net::SSLCertRequestInfo* cert_request_info) { 44 return false; 45} 46 47bool ResourceDispatcherHostDelegate::AcceptAuthRequest( 48 net::URLRequest* request, 49 net::AuthChallengeInfo* auth_info) { 50 return false; 51} 52 53ResourceDispatcherHostLoginDelegate* 54 ResourceDispatcherHostDelegate::CreateLoginDelegate( 55 net::AuthChallengeInfo* auth_info, 56 net::URLRequest* request) { 57 return NULL; 58} 59 60bool ResourceDispatcherHostDelegate::HandleExternalProtocol(const GURL& url, 61 int child_id, 62 int route_id) { 63 return true; 64} 65 66bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( 67 const GURL& url, 68 const std::string& mime_type) { 69 return false; 70} 71 72void ResourceDispatcherHostDelegate::OnResponseStarted( 73 net::URLRequest* request, 74 ResourceContext* resource_context, 75 ResourceResponse* response, 76 IPC::Sender* sender) { 77} 78 79void ResourceDispatcherHostDelegate::OnRequestRedirected( 80 const GURL& redirect_url, 81 net::URLRequest* request, 82 ResourceContext* resource_context, 83 ResourceResponse* response) { 84} 85 86ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { 87} 88 89ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { 90} 91 92} // namespace content 93