resource_dispatcher_host_delegate.cc revision 5f1c94371a64b3196d4be9466099bb892df9b88e
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 resource_type, 17 ResourceContext* resource_context) { 18 return true; 19} 20 21void ResourceDispatcherHostDelegate::RequestBeginning( 22 net::URLRequest* request, 23 ResourceContext* resource_context, 24 AppCacheService* appcache_service, 25 ResourceType resource_type, 26 int child_id, 27 int route_id, 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 bool must_download, 39 ScopedVector<ResourceThrottle>* throttles) { 40} 41 42ResourceDispatcherHostLoginDelegate* 43 ResourceDispatcherHostDelegate::CreateLoginDelegate( 44 net::AuthChallengeInfo* auth_info, 45 net::URLRequest* request) { 46 return NULL; 47} 48 49bool ResourceDispatcherHostDelegate::HandleExternalProtocol(const GURL& url, 50 int child_id, 51 int route_id) { 52 return true; 53} 54 55bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( 56 const GURL& url, 57 const std::string& mime_type) { 58 return false; 59} 60 61bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( 62 net::URLRequest* request, 63 const std::string& mime_type, 64 GURL* origin, 65 std::string* payload) { 66 return false; 67} 68 69void ResourceDispatcherHostDelegate::OnStreamCreated( 70 net::URLRequest* request, 71 scoped_ptr<content::StreamHandle> stream) { 72} 73 74void ResourceDispatcherHostDelegate::OnResponseStarted( 75 net::URLRequest* request, 76 ResourceContext* resource_context, 77 ResourceResponse* response, 78 IPC::Sender* sender) { 79} 80 81void ResourceDispatcherHostDelegate::OnRequestRedirected( 82 const GURL& redirect_url, 83 net::URLRequest* request, 84 ResourceContext* resource_context, 85 ResourceResponse* response) { 86} 87 88void ResourceDispatcherHostDelegate::RequestComplete( 89 net::URLRequest* url_request) { 90} 91 92ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { 93} 94 95ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { 96} 97 98} // namespace content 99