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

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: Removed redundant 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/resource_request_info.h" 7 #include "content/public/browser/resource_request_info.h"
8 #include "content/public/browser/stream_info.h" 8 #include "content/public/browser/stream_info.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 net::URLRequest* request) { 42 net::URLRequest* request) {
43 return nullptr; 43 return nullptr;
44 } 44 }
45 45
46 bool ResourceDispatcherHostDelegate::HandleExternalProtocol( 46 bool ResourceDispatcherHostDelegate::HandleExternalProtocol(
47 const GURL& url, 47 const GURL& url,
48 int child_id, 48 int child_id,
49 const ResourceRequestInfo::WebContentsGetter& web_contents_getter, 49 const ResourceRequestInfo::WebContentsGetter& web_contents_getter,
50 bool is_main_frame, 50 bool is_main_frame,
51 ui::PageTransition page_transition, 51 ui::PageTransition page_transition,
52 bool has_user_gesture) { 52 bool has_user_gesture,
53 bool is_whitelisted) {
53 return true; 54 return true;
54 } 55 }
55 56
56 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( 57 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource(
57 const GURL& url, 58 const GURL& url,
58 const std::string& mime_type) { 59 const std::string& mime_type) {
59 return false; 60 return false;
60 } 61 }
61 62
62 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( 63 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 return false; 97 return false;
97 } 98 }
98 99
99 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { 100 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() {
100 } 101 }
101 102
102 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { 103 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() {
103 } 104 }
104 105
105 } // namespace content 106 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698