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

Unified Diff: net/base/network_delegate.h

Issue 10068021: Fix file access on Chrome for ChromeOS on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed clang problem Created 8 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/base/network_delegate.h
diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h
index 34909ea04320c2593315bd4e910778c5cafd4245..920c82f009b516b9bc98e2b1ef49f347f21b1637 100644
--- a/net/base/network_delegate.h
+++ b/net/base/network_delegate.h
@@ -14,6 +14,7 @@
#include "net/base/auth.h"
#include "net/base/completion_callback.h"
+class FilePath;
class GURL;
namespace net {
@@ -82,9 +83,11 @@ class NetworkDelegate : public base::NonThreadSafe {
bool NotifySettingCookie(const URLRequest* request,
const std::string& cookie_line,
CookieOptions* options);
+ bool NotifyFileAccessRequested(const URLRequest* request,
+ const FilePath& path);
private:
- // This is the interface for subclasses of NetworkDelegate to implement. This
+ // This is the interface for subclasses of NetworkDelegate to implement. These
// member functions will be called by the respective public notification
// member function, which will perform basic sanity checking.
@@ -192,6 +195,13 @@ class NetworkDelegate : public base::NonThreadSafe {
const std::string& cookie_line,
CookieOptions* options) = 0;
+
+ // Called when a file access is attempted to allow the network delegate to
+ // allow or block access to the given file path. Returns true if access is
+ // allowed.
+ virtual bool CanAccessFile(const URLRequest* request,
+ const FilePath& path) = 0;
+
achuithb 2012/04/19 20:05:56 nit:unnecessary newline?
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698