diff options
author | achuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-25 23:17:33 +0000 |
---|---|---|
committer | achuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-25 23:17:33 +0000 |
commit | 93e43d53d2daf8a03e3a98a86d9c156d3303f570 (patch) | |
tree | 4717d76860e17c0f416bc2ef015466835978ddf8 /net/url_request/url_request_file_job.h | |
parent | aaa23b8c3cedac782c14b2a8876958bdf045ea6c (diff) | |
download | chromium_src-93e43d53d2daf8a03e3a98a86d9c156d3303f570.zip chromium_src-93e43d53d2daf8a03e3a98a86d9c156d3303f570.tar.gz chromium_src-93e43d53d2daf8a03e3a98a86d9c156d3303f570.tar.bz2 |
Restrict file protocol on chromeos to certain whitelisted directories.
BUG=cros-3412
TEST=Access file: directories on chromeos
Review URL: http://codereview.chromium.org/3999005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63801 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request_file_job.h')
-rw-r--r-- | net/url_request/url_request_file_job.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/url_request/url_request_file_job.h b/net/url_request/url_request_file_job.h index adf9d24..e2979ee 100644 --- a/net/url_request/url_request_file_job.h +++ b/net/url_request/url_request_file_job.h @@ -7,6 +7,7 @@ #pragma once #include <string> +#include <vector> #include "base/file_path.h" #include "net/base/completion_callback.h" @@ -44,6 +45,7 @@ class URLRequestFileJob : public URLRequestJob { private: void DidResolve(bool exists, const base::PlatformFileInfo& file_info); void DidRead(int result); + static bool AccessDisabled(const FilePath& file_path); net::CompletionCallbackImpl<URLRequestFileJob> io_callback_; net::FileStream stream_; |