diff options
author | achuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-11 22:19:00 +0000 |
---|---|---|
committer | achuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-11 22:19:00 +0000 |
commit | abb26096d64316448c4203de724e02a3258a2dce (patch) | |
tree | e420ffe07316fe21161f0245dedfb42c5fd4afc7 /net/url_request/url_request.h | |
parent | aab8b552b9901487f0288169f4b05d7cb2d14d11 (diff) | |
download | chromium_src-abb26096d64316448c4203de724e02a3258a2dce.zip chromium_src-abb26096d64316448c4203de724e02a3258a2dce.tar.gz chromium_src-abb26096d64316448c4203de724e02a3258a2dce.tar.bz2 |
Restrict file protocol on chromeos to certain whitelisted directories. Disable this for tests.
BUG=chromium-os:3412
TEST=Access file: directories on chromeos. browser, ui, interactive ui and unit tests should continue to pass.
Review URL: http://codereview.chromium.org/4160003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65866 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request.h')
-rw-r--r-- | net/url_request/url_request.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h index f573111..01f5984 100644 --- a/net/url_request/url_request.h +++ b/net/url_request/url_request.h @@ -251,6 +251,10 @@ class URLRequest : public NonThreadSafe { // to handle those. static bool IsHandledURL(const GURL& url); + // Allow access to file:// on ChromeOS for tests. + static void AllowFileAccess(); + static bool IsFileAccessAllowed(); + // The original url is the url used to initialize the request, and it may // differ from the url if the request was redirected. const GURL& original_url() const { return original_url_; } |