diff options
author | dpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-19 08:56:12 +0000 |
---|---|---|
committer | dpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-19 08:56:12 +0000 |
commit | df53d2da545716fb8c9f0f9492533d576c444d42 (patch) | |
tree | 675bf83e5667d81300f93d06dec8e046f56c0811 /net | |
parent | 82823345698a3d453f38c36ed2af7f0e61ef5a36 (diff) | |
download | chromium_src-df53d2da545716fb8c9f0f9492533d576c444d42.zip chromium_src-df53d2da545716fb8c9f0f9492533d576c444d42.tar.gz chromium_src-df53d2da545716fb8c9f0f9492533d576c444d42.tar.bz2 |
Limit chrome:filebrowse access to the same directory as file://
BUG=http://code.google.com/p/chromium-os/issues/detail?id=9212
TEST=manual
Review URL: http://codereview.chromium.org/5159003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66751 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/url_request/url_request_file_job.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/url_request/url_request_file_job.h b/net/url_request/url_request_file_job.h index 4512c1c..e745cfd 100644 --- a/net/url_request/url_request_file_job.h +++ b/net/url_request/url_request_file_job.h @@ -36,6 +36,10 @@ class URLRequestFileJob : public URLRequestJob { static URLRequest::ProtocolFactory Factory; +#if defined(OS_CHROMEOS) + static bool AccessDisabled(const FilePath& file_path); +#endif + protected: virtual ~URLRequestFileJob(); @@ -45,9 +49,6 @@ class URLRequestFileJob : public URLRequestJob { private: void DidResolve(bool exists, const base::PlatformFileInfo& file_info); void DidRead(int result); -#if defined(OS_CHROMEOS) - static bool AccessDisabled(const FilePath& file_path); -#endif net::CompletionCallbackImpl<URLRequestFileJob> io_callback_; net::FileStream stream_; |