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

Side by Side Diff: net/base/network_delegate_impl.cc

Issue 2786583002: chromeos: Check both original and absolute paths for file: scheme (Closed)
Patch Set: disable checks in sub classes Created 3 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "net/base/network_delegate_impl.h" 5 #include "net/base/network_delegate_impl.h"
6 6
7 #include "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 8
9 namespace net { 9 namespace net {
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const CookieList& cookie_list) { 85 const CookieList& cookie_list) {
86 return true; 86 return true;
87 } 87 }
88 88
89 bool NetworkDelegateImpl::OnCanSetCookie(const URLRequest& request, 89 bool NetworkDelegateImpl::OnCanSetCookie(const URLRequest& request,
90 const std::string& cookie_line, 90 const std::string& cookie_line,
91 CookieOptions* options) { 91 CookieOptions* options) {
92 return true; 92 return true;
93 } 93 }
94 94
95 bool NetworkDelegateImpl::OnCanAccessFile(const URLRequest& request, 95 bool NetworkDelegateImpl::OnCanAccessFile(
96 const base::FilePath& path) const { 96 const URLRequest& request,
97 const base::FilePath& original_path,
98 const base::FilePath& absolute_path) const {
97 return false; 99 return false;
98 } 100 }
99 101
100 bool NetworkDelegateImpl::OnCanEnablePrivacyMode( 102 bool NetworkDelegateImpl::OnCanEnablePrivacyMode(
101 const GURL& url, 103 const GURL& url,
102 const GURL& first_party_for_cookies) const { 104 const GURL& first_party_for_cookies) const {
103 return false; 105 return false;
104 } 106 }
105 107
106 bool NetworkDelegateImpl::OnAreExperimentalCookieFeaturesEnabled() const { 108 bool NetworkDelegateImpl::OnAreExperimentalCookieFeaturesEnabled() const {
107 return false; 109 return false;
108 } 110 }
109 111
110 bool NetworkDelegateImpl::OnCancelURLRequestWithPolicyViolatingReferrerHeader( 112 bool NetworkDelegateImpl::OnCancelURLRequestWithPolicyViolatingReferrerHeader(
111 const URLRequest& request, 113 const URLRequest& request,
112 const GURL& target_url, 114 const GURL& target_url,
113 const GURL& referrer_url) const { 115 const GURL& referrer_url) const {
114 return false; 116 return false;
115 } 117 }
116 118
117 } // namespace net 119 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698