diff options
author | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 02:42:36 +0000 |
---|---|---|
committer | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 02:42:36 +0000 |
commit | 8107004fbfe9f7ea4be59f6620273c1206c12f42 (patch) | |
tree | f86046c0bb77f471f60d088626ad291360b356ff /base/file_util_proxy.h | |
parent | 766f613f1c7022941e2e182543d0208a61210a16 (diff) | |
download | chromium_src-8107004fbfe9f7ea4be59f6620273c1206c12f42.zip chromium_src-8107004fbfe9f7ea4be59f6620273c1206c12f42.tar.gz chromium_src-8107004fbfe9f7ea4be59f6620273c1206c12f42.tar.bz2 |
Support handling blob URL and resolve blob references in upload data.
BUG=none
TEST=unittest
Review URL: http://codereview.chromium.org/3282003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57938 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_proxy.h')
-rw-r--r-- | base/file_util_proxy.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/base/file_util_proxy.h b/base/file_util_proxy.h index 87cd081..ff04e5b 100644 --- a/base/file_util_proxy.h +++ b/base/file_util_proxy.h @@ -10,6 +10,10 @@ #include "base/ref_counted.h" #include "base/tracked_objects.h" +namespace file_util { +struct FileInfo; +} + namespace base { class MessageLoopProxy; @@ -55,6 +59,16 @@ class FileUtilProxy { const FilePath& file_path, StatusCallback* callback); + // Retrieves the information about a file. It is invalid to pass NULL for the + // callback. + typedef Callback2<bool /*exists*/, + const file_util::FileInfo& /*file_info*/ + >::Type GetFileInfoCallback; + static bool GetFileInfo( + scoped_refptr<MessageLoopProxy> message_loop_proxy, + const FilePath& file_path, + GetFileInfoCallback* callback); + private: DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy); }; |