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

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

Issue 1692503002: Functionality to allow blacklist and whitelist of custom schemes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments Created 4 years, 7 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
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 #include "content/public/browser/navigation_data.h" 7 #include "content/public/browser/navigation_data.h"
8 #include "content/public/browser/resource_request_info.h" 8 #include "content/public/browser/resource_request_info.h"
9 #include "content/public/browser/stream_info.h" 9 #include "content/public/browser/stream_info.h"
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 net::URLRequest* request) { 43 net::URLRequest* request) {
44 return nullptr; 44 return nullptr;
45 } 45 }
46 46
47 bool ResourceDispatcherHostDelegate::HandleExternalProtocol( 47 bool ResourceDispatcherHostDelegate::HandleExternalProtocol(
48 const GURL& url, 48 const GURL& url,
49 int child_id, 49 int child_id,
50 const ResourceRequestInfo::WebContentsGetter& web_contents_getter, 50 const ResourceRequestInfo::WebContentsGetter& web_contents_getter,
51 bool is_main_frame, 51 bool is_main_frame,
52 ui::PageTransition page_transition, 52 ui::PageTransition page_transition,
53 bool has_user_gesture) { 53 bool has_user_gesture,
54 ResourceContext* resource_context) {
54 return true; 55 return true;
55 } 56 }
56 57
57 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( 58 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource(
58 const GURL& url, 59 const GURL& url,
59 const std::string& mime_type) { 60 const std::string& mime_type) {
60 return false; 61 return false;
61 } 62 }
62 63
63 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( 64 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 return nullptr; 103 return nullptr;
103 } 104 }
104 105
105 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { 106 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() {
106 } 107 }
107 108
108 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { 109 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() {
109 } 110 }
110 111
111 } // namespace content 112 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698