resource_dispatcher_host_delegate.cc revision 558790d6acca3451cf3a6b497803a5f07d0bec58
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 7#include "content/public/browser/stream_handle.h" 8 9namespace content { 10 11bool ResourceDispatcherHostDelegate::ShouldBeginRequest( 12 int child_id, 13 int route_id, 14 const std::string& method, 15 const GURL& url, 16 ResourceType::Type resource_type, 17 ResourceContext* resource_context) { 18 return true; 19} 20 21void ResourceDispatcherHostDelegate::RequestBeginning( 22 net::URLRequest* request, 23 ResourceContext* resource_context, 24 appcache::AppCacheService* appcache_service, 25 ResourceType::Type resource_type, 26 int child_id, 27 int route_id, 28 bool is_continuation_of_transferred_request, 29 ScopedVector<ResourceThrottle>* throttles) { 30} 31 32void ResourceDispatcherHostDelegate::DownloadStarting( 33 net::URLRequest* request, 34 ResourceContext* resource_context, 35 int child_id, 36 int route_id, 37 int request_id, 38 bool is_content_initiated, 39 bool must_download, 40 ScopedVector<ResourceThrottle>* throttles) { 41} 42 43bool ResourceDispatcherHostDelegate::AcceptSSLClientCertificateRequest( 44 net::URLRequest* request, 45 net::SSLCertRequestInfo* cert_request_info) { 46 return false; 47} 48 49bool ResourceDispatcherHostDelegate::AcceptAuthRequest( 50 net::URLRequest* request, 51 net::AuthChallengeInfo* auth_info) { 52 return false; 53} 54 55ResourceDispatcherHostLoginDelegate* 56 ResourceDispatcherHostDelegate::CreateLoginDelegate( 57 net::AuthChallengeInfo* auth_info, 58 net::URLRequest* request) { 59 return NULL; 60} 61 62bool ResourceDispatcherHostDelegate::HandleExternalProtocol(const GURL& url, 63 int child_id, 64 int route_id) { 65 return true; 66} 67 68bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( 69 const GURL& url, 70 const std::string& mime_type) { 71 return false; 72} 73 74bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( 75 content::ResourceContext* resource_context, 76 const GURL& url, 77 const std::string& mime_type, 78 GURL* origin, 79 std::string* target_id) { 80 return false; 81} 82 83void ResourceDispatcherHostDelegate::OnStreamCreated( 84 content::ResourceContext* resource_context, 85 int render_process_id, 86 int render_view_id, 87 const std::string& target_id, 88 scoped_ptr<StreamHandle> stream, 89 int64 expected_content_size) { 90} 91 92void ResourceDispatcherHostDelegate::OnResponseStarted( 93 net::URLRequest* request, 94 ResourceContext* resource_context, 95 ResourceResponse* response, 96 IPC::Sender* sender) { 97} 98 99void ResourceDispatcherHostDelegate::OnRequestRedirected( 100 const GURL& redirect_url, 101 net::URLRequest* request, 102 ResourceContext* resource_context, 103 ResourceResponse* response) { 104} 105 106ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { 107} 108 109ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { 110} 111 112} // namespace content 113