Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Side by Side Diff: chrome/browser/renderer_host/dummy_resource_dispatcher_host_delegate.cc

Issue 9235004: [Garbled Text][Infobar] Adding infobar to suggest turning on encoding detection. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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 "chrome/browser/renderer_host/dummy_resource_dispatcher_host_delegate.h "
6
7 bool DummyResourceDispatcherHostDelegate::ShouldBeginRequest(
8 int child_id,
9 int route_id,
10 const std::string& method,
11 const GURL& url,
12 ResourceType::Type resource_type,
13 const content::ResourceContext& resource_context,
14 const content::Referrer& referrer) {
15 return underlying_->ShouldBeginRequest(
16 child_id, route_id,
17 method, url, resource_type,
18 resource_context, referrer);
19 }
20
21 ResourceHandler* DummyResourceDispatcherHostDelegate::RequestBeginning(
22 ResourceHandler* handler,
23 net::URLRequest* request,
24 const content::ResourceContext& resource_context,
25 bool is_subresource,
26 int child_id,
27 int route_id,
28 bool is_continuation_of_transferred_request) {
29 return underlying_->RequestBeginning(
30 handler, request, resource_context, is_subresource,
31 child_id, route_id,
32 is_continuation_of_transferred_request);
33 }
34
35 ResourceHandler* DummyResourceDispatcherHostDelegate::DownloadStarting(
36 ResourceHandler* handler,
37 const content::ResourceContext& resource_context,
38 net::URLRequest* request,
39 int child_id,
40 int route_id,
41 int request_id,
42 bool is_new_request) {
43 return underlying_->DownloadStarting(
44 handler, resource_context, request,
45 child_id, route_id, request_id, is_new_request);
46 }
47
48 bool DummyResourceDispatcherHostDelegate::ShouldDeferStart(
49 net::URLRequest* request,
50 const content::ResourceContext& resource_context) {
51 return underlying_->ShouldDeferStart(request, resource_context);
52 }
53
54 bool DummyResourceDispatcherHostDelegate::AcceptSSLClientCertificateRequest(
55 net::URLRequest* request,
56 net::SSLCertRequestInfo* cert_request_info) {
57 return underlying_->AcceptSSLClientCertificateRequest(
58 request, cert_request_info);
59 }
60
61 bool DummyResourceDispatcherHostDelegate::AcceptAuthRequest(
62 net::URLRequest* request,
63 net::AuthChallengeInfo* auth_info) {
64 return underlying_->AcceptAuthRequest(
65 request, auth_info);
66 }
67
68 content::ResourceDispatcherHostLoginDelegate*
69 DummyResourceDispatcherHostDelegate::CreateLoginDelegate(
70 net::AuthChallengeInfo* auth_info, net::URLRequest* request) {
71 return underlying_->CreateLoginDelegate(auth_info, request);
72 }
73
74 void DummyResourceDispatcherHostDelegate::HandleExternalProtocol(
75 const GURL& url,
76 int child_id,
77 int route_id) {
78 underlying_->HandleExternalProtocol(url, child_id, route_id);
79 }
80
81 bool DummyResourceDispatcherHostDelegate::ShouldForceDownloadResource(
82 const GURL& url, const std::string& mime_type) {
83 return underlying_->ShouldForceDownloadResource(url, mime_type);
84 }
85
86 void DummyResourceDispatcherHostDelegate::OnResponseStarted(
87 net::URLRequest* request,
88 content::ResourceResponse* response,
89 ResourceMessageFilter* filter) {
90 underlying_->OnResponseStarted(request, response, filter);
91 }
92
93 void DummyResourceDispatcherHostDelegate::OnRequestRedirected(
94 net::URLRequest* request,
95 content::ResourceResponse* response,
96 ResourceMessageFilter* filter) {
97 underlying_->OnRequestRedirected(request, response, filter);
98 }
99
100 DummyResourceDispatcherHostDelegate::DummyResourceDispatcherHostDelegate(
101 content::ResourceDispatcherHostDelegate* underlying)
102 : underlying_(underlying) {
103 }
104
105 DummyResourceDispatcherHostDelegate::~DummyResourceDispatcherHostDelegate() {
106 }
107
108 content::ResourceDispatcherHostDelegate*
109 DummyResourceDispatcherHostDelegate::underlying() {
110 return underlying_;
111 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698