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

Unified Diff: net/base/layered_network_delegate.h

Issue 2786583002: chromeos: Check both original and absolute paths for file: scheme (Closed)
Patch Set: add null checks for network_delegate() Created 3 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 side-by-side diff with in-line comments
Download patch
Index: net/base/layered_network_delegate.h
diff --git a/net/base/layered_network_delegate.h b/net/base/layered_network_delegate.h
index 1666d86a6b5072f4161ade284e226b9c2b08dd1c..13b7b343d1a3af6e19d1330489779cca2e521628 100644
--- a/net/base/layered_network_delegate.h
+++ b/net/base/layered_network_delegate.h
@@ -78,7 +78,8 @@ class NET_EXPORT LayeredNetworkDelegate : public NetworkDelegate {
const std::string& cookie_line,
CookieOptions* options) final;
bool OnCanAccessFile(const URLRequest& request,
- const base::FilePath& path) const final;
+ const base::FilePath& original_path,
+ const base::FilePath& absolute_path) const final;
bool OnCanEnablePrivacyMode(const GURL& url,
const GURL& first_party_for_cookies) const final;
bool OnAreExperimentalCookieFeaturesEnabled() const final;
@@ -143,8 +144,10 @@ class NET_EXPORT LayeredNetworkDelegate : public NetworkDelegate {
const AuthCallback& callback,
AuthCredentials* credentials);
- virtual void OnCanAccessFileInternal(const URLRequest& request,
- const base::FilePath& path) const;
+ virtual void OnCanAccessFileInternal(
+ const URLRequest& request,
+ const base::FilePath& original_path,
+ const base::FilePath& absolute_path) const;
virtual void OnCanEnablePrivacyModeInternal(
const GURL& url,

Powered by Google App Engine
This is Rietveld 408576698