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

Unified Diff: net/url_request/url_request_file_job.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: net/url_request/url_request_file_job.h
diff --git a/net/url_request/url_request_file_job.h b/net/url_request/url_request_file_job.h
index ec907679481827eca9a5c04fbdb451ebc43b9848..41d031df7bf1d6e75842a8b21b05fdf043b212bd 100644
--- a/net/url_request/url_request_file_job.h
+++ b/net/url_request/url_request_file_job.h
@@ -72,6 +72,10 @@ class NET_EXPORT URLRequestFileJob : public URLRequestJob {
base::FilePath file_path_;
private:
+ // ...
+ virtual bool CanAccessFile(const base::FilePath& original_path,
+ const base::FilePath& absolute_path);
+
// Meta information about the file. It's used as a member in the
// URLRequestFileJob and also passed between threads because disk access is
// necessary to obtain it.
@@ -89,6 +93,8 @@ class NET_EXPORT URLRequestFileJob : public URLRequestJob {
bool file_exists;
// Flag showing whether the file name actually refers to a directory.
bool is_directory;
+ // Absolute path of the file (i.e. symbolic link is resolved).
+ base::FilePath absolute_path;
};
// Fetches file info on a background thread.

Powered by Google App Engine
This is Rietveld 408576698