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

Unified Diff: net/base/layered_network_delegate.h

Issue 2786583002: chromeos: Check both original and absolute paths for file: scheme (Closed)
Patch Set: remove dcheck 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
« no previous file with comments | « net/base/directory_lister.cc ('k') | net/base/layered_network_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/layered_network_delegate.h
diff --git a/net/base/layered_network_delegate.h b/net/base/layered_network_delegate.h
index 562ca0f7708e16c62e986d61defa75bf447ad0f4..033ae357716df7d8ff216be2f4e2bdea69288968 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;
@@ -153,8 +154,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,
« no previous file with comments | « net/base/directory_lister.cc ('k') | net/base/layered_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698