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

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: remove dcheck Created 3 years, 6 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
« no previous file with comments | « net/base/network_delegate_impl.h ('k') | net/proxy/network_delegate_error_observer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
(...skipping 21 matching lines...) Expand all
128 const GURL& endpoint) const { 130 const GURL& endpoint) const {
129 return true; 131 return true;
130 } 132 }
131 133
132 bool NetworkDelegateImpl::OnCanUseReportingClient(const url::Origin& origin, 134 bool NetworkDelegateImpl::OnCanUseReportingClient(const url::Origin& origin,
133 const GURL& endpoint) const { 135 const GURL& endpoint) const {
134 return true; 136 return true;
135 } 137 }
136 138
137 } // namespace net 139 } // namespace net
OLDNEW
« no previous file with comments | « net/base/network_delegate_impl.h ('k') | net/proxy/network_delegate_error_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698