chrome/browser/extensions: Remove use of MessageLoopProxy and deprecated MessageLoop...
[chromium-blink-merge.git] / content / public / browser / resource_dispatcher_host_delegate.cc
blobc67ab55dff21529af0733a02648d54a16c13f558
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.
5 #include "content/public/browser/resource_dispatcher_host_delegate.h"
7 #include "content/public/browser/stream_info.h"
9 namespace content {
11 bool ResourceDispatcherHostDelegate::ShouldBeginRequest(
12 const std::string& method,
13 const GURL& url,
14 ResourceType resource_type,
15 ResourceContext* resource_context) {
16 return true;
19 void ResourceDispatcherHostDelegate::RequestBeginning(
20 net::URLRequest* request,
21 ResourceContext* resource_context,
22 AppCacheService* appcache_service,
23 ResourceType resource_type,
24 ScopedVector<ResourceThrottle>* throttles) {
27 void ResourceDispatcherHostDelegate::DownloadStarting(
28 net::URLRequest* request,
29 ResourceContext* resource_context,
30 int child_id,
31 int route_id,
32 int request_id,
33 bool is_content_initiated,
34 bool must_download,
35 ScopedVector<ResourceThrottle>* throttles) {
38 ResourceDispatcherHostLoginDelegate*
39 ResourceDispatcherHostDelegate::CreateLoginDelegate(
40 net::AuthChallengeInfo* auth_info,
41 net::URLRequest* request) {
42 return nullptr;
45 bool ResourceDispatcherHostDelegate::HandleExternalProtocol(
46 const GURL& url,
47 int child_id,
48 int route_id,
49 bool is_main_frame,
50 ui::PageTransition page_transition,
51 bool has_user_gesture) {
52 return true;
55 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource(
56 const GURL& url,
57 const std::string& mime_type) {
58 return false;
61 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
62 net::URLRequest* request,
63 const std::string& mime_type,
64 GURL* origin,
65 std::string* payload) {
66 return false;
69 void ResourceDispatcherHostDelegate::OnStreamCreated(
70 net::URLRequest* request,
71 scoped_ptr<content::StreamInfo> stream) {
74 void ResourceDispatcherHostDelegate::OnResponseStarted(
75 net::URLRequest* request,
76 ResourceContext* resource_context,
77 ResourceResponse* response,
78 IPC::Sender* sender) {
81 void ResourceDispatcherHostDelegate::OnRequestRedirected(
82 const GURL& redirect_url,
83 net::URLRequest* request,
84 ResourceContext* resource_context,
85 ResourceResponse* response) {
88 void ResourceDispatcherHostDelegate::RequestComplete(
89 net::URLRequest* url_request) {
92 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() {
95 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() {
98 } // namespace content