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

Unified Diff: extensions/shell/browser/shell_network_delegate.h

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 side-by-side diff with in-line comments
Download patch
Index: extensions/shell/browser/shell_network_delegate.h
diff --git a/extensions/shell/browser/shell_network_delegate.h b/extensions/shell/browser/shell_network_delegate.h
index 3936770ebafd82c029adb16c83d1f7bd2e7b085d..b1153caf25d7b3796c6b449f65141d8c8221d0ea 100644
--- a/extensions/shell/browser/shell_network_delegate.h
+++ b/extensions/shell/browser/shell_network_delegate.h
@@ -49,6 +49,9 @@ class ShellNetworkDelegate : public net::NetworkDelegateImpl {
const net::AuthChallengeInfo& auth_info,
const AuthCallback& callback,
net::AuthCredentials* credentials) override;
+ bool OnCanAccessFile(const net::URLRequest& request,
+ const base::FilePath& original_path,
+ const base::FilePath& absolute_path) const override;
void* browser_context_;
scoped_refptr<extensions::InfoMap> extension_info_map_;

Powered by Google App Engine
This is Rietveld 408576698