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

Side by Side Diff: content/public/browser/resource_dispatcher_host_delegate.cc

Issue 11265013: [Android] Use resource throttle instead of HandleExternalProtocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android webview compilation error (adjust header). Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « content/public/browser/resource_dispatcher_host_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/browser/resource_dispatcher_host_delegate.h" 5 #include "content/public/browser/resource_dispatcher_host_delegate.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( 9 bool ResourceDispatcherHostDelegate::ShouldBeginRequest(
10 int child_id, 10 int child_id,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 return false; 50 return false;
51 } 51 }
52 52
53 ResourceDispatcherHostLoginDelegate* 53 ResourceDispatcherHostLoginDelegate*
54 ResourceDispatcherHostDelegate::CreateLoginDelegate( 54 ResourceDispatcherHostDelegate::CreateLoginDelegate(
55 net::AuthChallengeInfo* auth_info, 55 net::AuthChallengeInfo* auth_info,
56 net::URLRequest* request) { 56 net::URLRequest* request) {
57 return NULL; 57 return NULL;
58 } 58 }
59 59
60 void ResourceDispatcherHostDelegate::HandleExternalProtocol(const GURL& url, 60 bool ResourceDispatcherHostDelegate::HandleExternalProtocol(const GURL& url,
61 int child_id, 61 int child_id,
62 int route_id) { 62 int route_id) {
63 return true;
63 } 64 }
64 65
65 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( 66 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource(
66 const GURL& url, 67 const GURL& url,
67 const std::string& mime_type) { 68 const std::string& mime_type) {
68 return false; 69 return false;
69 } 70 }
70 71
71 void ResourceDispatcherHostDelegate::OnResponseStarted( 72 void ResourceDispatcherHostDelegate::OnResponseStarted(
72 net::URLRequest* request, 73 net::URLRequest* request,
73 ResourceContext* resource_context, 74 ResourceContext* resource_context,
74 ResourceResponse* response, 75 ResourceResponse* response,
75 IPC::Sender* sender) { 76 IPC::Sender* sender) {
76 } 77 }
77 78
78 void ResourceDispatcherHostDelegate::OnRequestRedirected( 79 void ResourceDispatcherHostDelegate::OnRequestRedirected(
79 const GURL& redirect_url, 80 const GURL& redirect_url,
80 net::URLRequest* request, 81 net::URLRequest* request,
81 ResourceContext* resource_context, 82 ResourceContext* resource_context,
82 ResourceResponse* response) { 83 ResourceResponse* response) {
83 } 84 }
84 85
85 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { 86 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() {
86 } 87 }
87 88
88 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { 89 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() {
89 } 90 }
90 91
91 } // namespace content 92 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/resource_dispatcher_host_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698