erg@google.com | d5fffd4 | 2011-01-08 03:06:45 +0900 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
dumi@chromium.org | c980e40 | 2010-08-21 07:42:50 +0900 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
kkanetkar@chromium.org | 3a3bdea | 2010-09-02 12:43:36 +0900 | [diff] [blame] | 5 | #ifndef BASE_FILE_UTIL_PROXY_H_ |
| 6 | #define BASE_FILE_UTIL_PROXY_H_ |
| 7 | |
| 8 | #include <vector> |
dumi@chromium.org | c980e40 | 2010-08-21 07:42:50 +0900 | [diff] [blame] | 9 | |
darin@chromium.org | e585bed | 2011-08-06 00:34:00 +0900 | [diff] [blame] | 10 | #include "base/base_export.h" |
jhawkins@chromium.org | 3a6573d | 2011-10-18 03:40:30 +0900 | [diff] [blame] | 11 | #include "base/callback.h" |
kkanetkar@chromium.org | 3a3bdea | 2010-09-02 12:43:36 +0900 | [diff] [blame] | 12 | #include "base/file_path.h" |
| 13 | #include "base/file_util.h" |
levin@chromium.org | 5c52868 | 2011-03-28 10:54:15 +0900 | [diff] [blame] | 14 | #include "base/memory/ref_counted.h" |
dumi@chromium.org | c980e40 | 2010-08-21 07:42:50 +0900 | [diff] [blame] | 15 | #include "base/platform_file.h" |
dumi@chromium.org | c980e40 | 2010-08-21 07:42:50 +0900 | [diff] [blame] | 16 | #include "base/tracked_objects.h" |
| 17 | |
| 18 | namespace base { |
| 19 | |
| 20 | class MessageLoopProxy; |
dumi@chromium.org | 97ae261 | 2010-09-03 11:28:37 +0900 | [diff] [blame] | 21 | class Time; |
dumi@chromium.org | c980e40 | 2010-08-21 07:42:50 +0900 | [diff] [blame] | 22 | |
| 23 | // This class provides asynchronous access to common file routines. |
darin@chromium.org | e585bed | 2011-08-06 00:34:00 +0900 | [diff] [blame] | 24 | class BASE_EXPORT FileUtilProxy { |
dumi@chromium.org | c980e40 | 2010-08-21 07:42:50 +0900 | [diff] [blame] | 25 | public: |
kkanetkar@chromium.org | 4871068 | 2010-11-03 05:36:52 +0900 | [diff] [blame] | 26 | // Holds metadata for file or directory entry. Used by ReadDirectoryCallback. |
| 27 | struct Entry { |
| 28 | FilePath::StringType name; |
| 29 | bool is_directory; |
tzik@chromium.org | 09987c3 | 2011-07-19 14:03:03 +0900 | [diff] [blame] | 30 | int64 size; |
| 31 | base::Time last_modified_time; |
kkanetkar@chromium.org | 4871068 | 2010-11-03 05:36:52 +0900 | [diff] [blame] | 32 | }; |
| 33 | |
dumi@chromium.org | 6dedd6d | 2010-08-25 05:26:23 +0900 | [diff] [blame] | 34 | // This callback is used by methods that report only an error code. It is |
jhawkins@chromium.org | 162de39 | 2011-10-18 06:33:35 +0900 | [diff] [blame^] | 35 | // valid to pass a null callback to any function that takes a StatusCallback, |
| 36 | // in which case the operation will complete silently. |
| 37 | typedef base::Callback<void(PlatformFileError /* error code */)> |
| 38 | StatusCallback; |
dumi@chromium.org | c980e40 | 2010-08-21 07:42:50 +0900 | [diff] [blame] | 39 | |
jhawkins@chromium.org | 3a6573d | 2011-10-18 03:40:30 +0900 | [diff] [blame] | 40 | typedef base::Callback<void(PlatformFileError /* error code */, |
| 41 | PassPlatformFile, |
| 42 | bool /* created */)> CreateOrOpenCallback; |
jhawkins@chromium.org | d90c4f5 | 2011-10-18 04:29:29 +0900 | [diff] [blame] | 43 | typedef base::Callback<void(PlatformFileError /* error code */, |
| 44 | PassPlatformFile, |
| 45 | FilePath)> CreateTemporaryCallback; |
jhawkins@chromium.org | 70bffc1 | 2011-10-18 04:39:59 +0900 | [diff] [blame] | 46 | typedef base::Callback<void(PlatformFileError /* error code */, |
| 47 | bool /* created */)> EnsureFileExistsCallback; |
jhawkins@chromium.org | 56771f0 | 2011-10-18 05:12:05 +0900 | [diff] [blame] | 48 | typedef base::Callback<void(PlatformFileError /* error code */, |
| 49 | const PlatformFileInfo& /* file_info */)> |
| 50 | GetFileInfoCallback; |
jhawkins@chromium.org | e13cc44 | 2011-10-18 05:34:19 +0900 | [diff] [blame] | 51 | typedef base::Callback<void(PlatformFileError /* error code */, |
| 52 | const std::vector<Entry>&)> ReadDirectoryCallback; |
jhawkins@chromium.org | d08a33e | 2011-10-18 05:44:47 +0900 | [diff] [blame] | 53 | typedef base::Callback<void(PlatformFileError /* error code */, |
| 54 | const char* /* data */, |
| 55 | int /* bytes read/written */)> ReadCallback; |
jhawkins@chromium.org | 553ef50 | 2011-10-18 05:56:52 +0900 | [diff] [blame] | 56 | typedef base::Callback<void(PlatformFileError /* error code */, |
| 57 | int /* bytes written */)> WriteCallback; |
erg@google.com | d5fffd4 | 2011-01-08 03:06:45 +0900 | [diff] [blame] | 58 | |
jhawkins@chromium.org | d08a33e | 2011-10-18 05:44:47 +0900 | [diff] [blame] | 59 | // Creates or opens a file with the given flags. It is invalid to pass a null |
| 60 | // callback. If PLATFORM_FILE_CREATE is set in |file_flags| it always tries to |
| 61 | // create a new file at the given |file_path| and calls back with |
| 62 | // PLATFORM_FILE_ERROR_FILE_EXISTS if the |file_path| already exists. Takes |
| 63 | // ownership of |callback| and will delete it even on failure. |
dumi@chromium.org | 6dedd6d | 2010-08-25 05:26:23 +0900 | [diff] [blame] | 64 | static bool CreateOrOpen(scoped_refptr<MessageLoopProxy> message_loop_proxy, |
dumi@chromium.org | c980e40 | 2010-08-21 07:42:50 +0900 | [diff] [blame] | 65 | const FilePath& file_path, |
| 66 | int file_flags, |
jhawkins@chromium.org | 3a6573d | 2011-10-18 03:40:30 +0900 | [diff] [blame] | 67 | const CreateOrOpenCallback& callback); |
dumi@chromium.org | c980e40 | 2010-08-21 07:42:50 +0900 | [diff] [blame] | 68 | |
jhawkins@chromium.org | d08a33e | 2011-10-18 05:44:47 +0900 | [diff] [blame] | 69 | // Creates a temporary file for writing. The path and an open file handle are |
| 70 | // returned. It is invalid to pass a null callback. The additional file flags |
| 71 | // will be added on top of the default file flags which are: |
noelutz@google.com | f56dab2 | 2011-06-14 05:29:50 +0900 | [diff] [blame] | 72 | // base::PLATFORM_FILE_CREATE_ALWAYS |
| 73 | // base::PLATFORM_FILE_WRITE |
| 74 | // base::PLATFORM_FILE_TEMPORARY. |
| 75 | // Set |additional_file_flags| to 0 for synchronous writes and set to |
| 76 | // base::PLATFORM_FILE_ASYNC to support asynchronous file operations. |
dumi@chromium.org | 6dedd6d | 2010-08-25 05:26:23 +0900 | [diff] [blame] | 77 | static bool CreateTemporary( |
dumi@chromium.org | c980e40 | 2010-08-21 07:42:50 +0900 | [diff] [blame] | 78 | scoped_refptr<MessageLoopProxy> message_loop_proxy, |
noelutz@google.com | f56dab2 | 2011-06-14 05:29:50 +0900 | [diff] [blame] | 79 | int additional_file_flags, |
jhawkins@chromium.org | d90c4f5 | 2011-10-18 04:29:29 +0900 | [diff] [blame] | 80 | const CreateTemporaryCallback& callback); |
dumi@chromium.org | c980e40 | 2010-08-21 07:42:50 +0900 | [diff] [blame] | 81 | |
| 82 | // Close the given file handle. |
dumi@chromium.org | 6dedd6d | 2010-08-25 05:26:23 +0900 | [diff] [blame] | 83 | static bool Close(scoped_refptr<MessageLoopProxy> message_loop_proxy, |
kkanetkar@chromium.org | 4871068 | 2010-11-03 05:36:52 +0900 | [diff] [blame] | 84 | PlatformFile, |
jhawkins@chromium.org | 162de39 | 2011-10-18 06:33:35 +0900 | [diff] [blame^] | 85 | const StatusCallback& callback); |
dumi@chromium.org | c980e40 | 2010-08-21 07:42:50 +0900 | [diff] [blame] | 86 | |
kinuko@chromium.org | 850eb6d | 2010-10-15 09:37:34 +0900 | [diff] [blame] | 87 | // Ensures that the given |file_path| exist. This creates a empty new file |
| 88 | // at |file_path| if the |file_path| does not exist. |
jhawkins@chromium.org | d08a33e | 2011-10-18 05:44:47 +0900 | [diff] [blame] | 89 | // If a new file does not exist and is created at the |file_path|, |created| |
| 90 | // of the callback argument is set true and |error code| is set |
| 91 | // PLATFORM_FILE_OK. If the file already exists, |created| is set false and |
| 92 | // |error code| is set PLATFORM_FILE_OK. If the file hasn't existed but it |
| 93 | // couldn't be created for some other reasons, |created| is set false and |
| 94 | // |error code| indicates the error. |
kinuko@chromium.org | 850eb6d | 2010-10-15 09:37:34 +0900 | [diff] [blame] | 95 | static bool EnsureFileExists( |
| 96 | scoped_refptr<MessageLoopProxy> message_loop_proxy, |
| 97 | const FilePath& file_path, |
jhawkins@chromium.org | 70bffc1 | 2011-10-18 04:39:59 +0900 | [diff] [blame] | 98 | const EnsureFileExistsCallback& callback); |
kinuko@chromium.org | 850eb6d | 2010-10-15 09:37:34 +0900 | [diff] [blame] | 99 | |
jhawkins@chromium.org | d08a33e | 2011-10-18 05:44:47 +0900 | [diff] [blame] | 100 | // Retrieves the information about a file. It is invalid to pass a null |
jianli@chromium.org | 9ed1f9d | 2010-08-31 11:42:36 +0900 | [diff] [blame] | 101 | // callback. |
jianli@chromium.org | 9ed1f9d | 2010-08-31 11:42:36 +0900 | [diff] [blame] | 102 | static bool GetFileInfo( |
| 103 | scoped_refptr<MessageLoopProxy> message_loop_proxy, |
| 104 | const FilePath& file_path, |
jhawkins@chromium.org | 56771f0 | 2011-10-18 05:12:05 +0900 | [diff] [blame] | 105 | const GetFileInfoCallback& callback); |
jianli@chromium.org | 9ed1f9d | 2010-08-31 11:42:36 +0900 | [diff] [blame] | 106 | |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 107 | static bool GetFileInfoFromPlatformFile( |
| 108 | scoped_refptr<MessageLoopProxy> message_loop_proxy, |
kkanetkar@chromium.org | 4871068 | 2010-11-03 05:36:52 +0900 | [diff] [blame] | 109 | PlatformFile file, |
jhawkins@chromium.org | 56771f0 | 2011-10-18 05:12:05 +0900 | [diff] [blame] | 110 | const GetFileInfoCallback& callback); |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 111 | |
kkanetkar@chromium.org | 3a3bdea | 2010-09-02 12:43:36 +0900 | [diff] [blame] | 112 | static bool ReadDirectory(scoped_refptr<MessageLoopProxy> message_loop_proxy, |
| 113 | const FilePath& file_path, |
jhawkins@chromium.org | e13cc44 | 2011-10-18 05:34:19 +0900 | [diff] [blame] | 114 | const ReadDirectoryCallback& callback); |
kkanetkar@chromium.org | 3a3bdea | 2010-09-02 12:43:36 +0900 | [diff] [blame] | 115 | |
erg@google.com | 37c078e | 2011-01-11 09:50:59 +0900 | [diff] [blame] | 116 | // Creates directory at given path. It's an error to create |
| 117 | // if |exclusive| is true and dir already exists. |
| 118 | static bool CreateDirectory( |
| 119 | scoped_refptr<MessageLoopProxy> message_loop_proxy, |
| 120 | const FilePath& file_path, |
| 121 | bool exclusive, |
| 122 | bool recursive, |
jhawkins@chromium.org | 162de39 | 2011-10-18 06:33:35 +0900 | [diff] [blame^] | 123 | const StatusCallback& callback); |
erg@google.com | 37c078e | 2011-01-11 09:50:59 +0900 | [diff] [blame] | 124 | |
kkanetkar@chromium.org | 3a3bdea | 2010-09-02 12:43:36 +0900 | [diff] [blame] | 125 | // Copies a file or a directory from |src_file_path| to |dest_file_path| |
| 126 | // Error cases: |
| 127 | // If destination file doesn't exist or destination's parent |
| 128 | // doesn't exists. |
| 129 | // If source dir exists but destination path is an existing file. |
kinuko@chromium.org | 1a07804 | 2010-10-07 17:35:09 +0900 | [diff] [blame] | 130 | // If source file exists but destination path is an existing directory. |
kkanetkar@chromium.org | 3a3bdea | 2010-09-02 12:43:36 +0900 | [diff] [blame] | 131 | // If source is a parent of destination. |
| 132 | // If source doesn't exists. |
| 133 | static bool Copy(scoped_refptr<MessageLoopProxy> message_loop_proxy, |
| 134 | const FilePath& src_file_path, |
| 135 | const FilePath& dest_file_path, |
jhawkins@chromium.org | 162de39 | 2011-10-18 06:33:35 +0900 | [diff] [blame^] | 136 | const StatusCallback& callback); |
kkanetkar@chromium.org | 3a3bdea | 2010-09-02 12:43:36 +0900 | [diff] [blame] | 137 | |
erg@google.com | 37c078e | 2011-01-11 09:50:59 +0900 | [diff] [blame] | 138 | // Moves a file or a directory from src_file_path to dest_file_path. |
| 139 | // Error cases are similar to Copy method's error cases. |
| 140 | static bool Move( |
kkanetkar@chromium.org | 3a3bdea | 2010-09-02 12:43:36 +0900 | [diff] [blame] | 141 | scoped_refptr<MessageLoopProxy> message_loop_proxy, |
erg@google.com | 37c078e | 2011-01-11 09:50:59 +0900 | [diff] [blame] | 142 | const FilePath& src_file_path, |
| 143 | const FilePath& dest_file_path, |
jhawkins@chromium.org | 162de39 | 2011-10-18 06:33:35 +0900 | [diff] [blame^] | 144 | const StatusCallback& callback); |
kkanetkar@chromium.org | 3a3bdea | 2010-09-02 12:43:36 +0900 | [diff] [blame] | 145 | |
kinuko@chromium.org | 1a07804 | 2010-10-07 17:35:09 +0900 | [diff] [blame] | 146 | // Deletes a file or a directory. |
| 147 | // It is an error to delete a non-empty directory with recursive=false. |
kkanetkar@chromium.org | 3a3bdea | 2010-09-02 12:43:36 +0900 | [diff] [blame] | 148 | static bool Delete(scoped_refptr<MessageLoopProxy> message_loop_proxy, |
| 149 | const FilePath& file_path, |
kinuko@chromium.org | 1a07804 | 2010-10-07 17:35:09 +0900 | [diff] [blame] | 150 | bool recursive, |
jhawkins@chromium.org | 162de39 | 2011-10-18 06:33:35 +0900 | [diff] [blame^] | 151 | const StatusCallback& callback); |
kkanetkar@chromium.org | 3a3bdea | 2010-09-02 12:43:36 +0900 | [diff] [blame] | 152 | |
kkanetkar@chromium.org | 3a3bdea | 2010-09-02 12:43:36 +0900 | [diff] [blame] | 153 | // Deletes a directory and all of its contents. |
| 154 | static bool RecursiveDelete( |
| 155 | scoped_refptr<MessageLoopProxy> message_loop_proxy, |
| 156 | const FilePath& file_path, |
jhawkins@chromium.org | 162de39 | 2011-10-18 06:33:35 +0900 | [diff] [blame^] | 157 | const StatusCallback& callback); |
kkanetkar@chromium.org | 3a3bdea | 2010-09-02 12:43:36 +0900 | [diff] [blame] | 158 | |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 159 | // Reads from a file. On success, the file pointer is moved to position |
jhawkins@chromium.org | d08a33e | 2011-10-18 05:44:47 +0900 | [diff] [blame] | 160 | // |offset + bytes_to_read| in the file. The callback can be null. |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 161 | static bool Read( |
| 162 | scoped_refptr<MessageLoopProxy> message_loop_proxy, |
kkanetkar@chromium.org | 4871068 | 2010-11-03 05:36:52 +0900 | [diff] [blame] | 163 | PlatformFile file, |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 164 | int64 offset, |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 165 | int bytes_to_read, |
jhawkins@chromium.org | d08a33e | 2011-10-18 05:44:47 +0900 | [diff] [blame] | 166 | const ReadCallback& callback); |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 167 | |
| 168 | // Writes to a file. If |offset| is greater than the length of the file, |
| 169 | // |false| is returned. On success, the file pointer is moved to position |
jhawkins@chromium.org | 553ef50 | 2011-10-18 05:56:52 +0900 | [diff] [blame] | 170 | // |offset + bytes_to_write| in the file. The callback can be null. |
sanga@chromium.org | 21d251f | 2011-08-18 01:45:48 +0900 | [diff] [blame] | 171 | // |bytes_to_write| must be greater than zero. |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 172 | static bool Write( |
| 173 | scoped_refptr<MessageLoopProxy> message_loop_proxy, |
kkanetkar@chromium.org | 4871068 | 2010-11-03 05:36:52 +0900 | [diff] [blame] | 174 | PlatformFile file, |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 175 | int64 offset, |
| 176 | const char* buffer, |
| 177 | int bytes_to_write, |
jhawkins@chromium.org | 553ef50 | 2011-10-18 05:56:52 +0900 | [diff] [blame] | 178 | const WriteCallback& callback); |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 179 | |
jhawkins@chromium.org | 553ef50 | 2011-10-18 05:56:52 +0900 | [diff] [blame] | 180 | // Touches a file. The callback can be null. |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 181 | static bool Touch( |
| 182 | scoped_refptr<MessageLoopProxy> message_loop_proxy, |
kkanetkar@chromium.org | 4871068 | 2010-11-03 05:36:52 +0900 | [diff] [blame] | 183 | PlatformFile file, |
| 184 | const Time& last_access_time, |
| 185 | const Time& last_modified_time, |
jhawkins@chromium.org | 162de39 | 2011-10-18 06:33:35 +0900 | [diff] [blame^] | 186 | const StatusCallback& callback); |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 187 | |
jhawkins@chromium.org | 553ef50 | 2011-10-18 05:56:52 +0900 | [diff] [blame] | 188 | // Touches a file. The callback can be null. |
dumi@chromium.org | 12c2e2b | 2010-09-24 10:09:32 +0900 | [diff] [blame] | 189 | static bool Touch( |
| 190 | scoped_refptr<MessageLoopProxy> message_loop_proxy, |
| 191 | const FilePath& file_path, |
kkanetkar@chromium.org | 4871068 | 2010-11-03 05:36:52 +0900 | [diff] [blame] | 192 | const Time& last_access_time, |
| 193 | const Time& last_modified_time, |
jhawkins@chromium.org | 162de39 | 2011-10-18 06:33:35 +0900 | [diff] [blame^] | 194 | const StatusCallback& callback); |
dumi@chromium.org | 12c2e2b | 2010-09-24 10:09:32 +0900 | [diff] [blame] | 195 | |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 196 | // Truncates a file to the given length. If |length| is greater than the |
| 197 | // current length of the file, the file will be extended with zeroes. |
jhawkins@chromium.org | 553ef50 | 2011-10-18 05:56:52 +0900 | [diff] [blame] | 198 | // The callback can be null. |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 199 | static bool Truncate( |
| 200 | scoped_refptr<MessageLoopProxy> message_loop_proxy, |
kkanetkar@chromium.org | 4871068 | 2010-11-03 05:36:52 +0900 | [diff] [blame] | 201 | PlatformFile file, |
ericu@google.com | 6a65222 | 2010-10-05 11:26:47 +0900 | [diff] [blame] | 202 | int64 length, |
jhawkins@chromium.org | 162de39 | 2011-10-18 06:33:35 +0900 | [diff] [blame^] | 203 | const StatusCallback& callback); |
ericu@google.com | 6a65222 | 2010-10-05 11:26:47 +0900 | [diff] [blame] | 204 | |
| 205 | // Truncates a file to the given length. If |length| is greater than the |
| 206 | // current length of the file, the file will be extended with zeroes. |
jhawkins@chromium.org | 553ef50 | 2011-10-18 05:56:52 +0900 | [diff] [blame] | 207 | // The callback can be null. |
ericu@google.com | 6a65222 | 2010-10-05 11:26:47 +0900 | [diff] [blame] | 208 | static bool Truncate( |
| 209 | scoped_refptr<MessageLoopProxy> message_loop_proxy, |
| 210 | const FilePath& path, |
| 211 | int64 length, |
jhawkins@chromium.org | 162de39 | 2011-10-18 06:33:35 +0900 | [diff] [blame^] | 212 | const StatusCallback& callback); |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 213 | |
jhawkins@chromium.org | 553ef50 | 2011-10-18 05:56:52 +0900 | [diff] [blame] | 214 | // Flushes a file. The callback can be null. |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 215 | static bool Flush( |
| 216 | scoped_refptr<MessageLoopProxy> message_loop_proxy, |
kkanetkar@chromium.org | 4871068 | 2010-11-03 05:36:52 +0900 | [diff] [blame] | 217 | PlatformFile file, |
jhawkins@chromium.org | 162de39 | 2011-10-18 06:33:35 +0900 | [diff] [blame^] | 218 | const StatusCallback& callback); |
dumi@chromium.org | 2391598 | 2010-09-10 12:01:14 +0900 | [diff] [blame] | 219 | |
dumi@chromium.org | c980e40 | 2010-08-21 07:42:50 +0900 | [diff] [blame] | 220 | private: |
| 221 | DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy); |
| 222 | }; |
| 223 | |
kkanetkar@chromium.org | 3a3bdea | 2010-09-02 12:43:36 +0900 | [diff] [blame] | 224 | } // namespace base |
dumi@chromium.org | c980e40 | 2010-08-21 07:42:50 +0900 | [diff] [blame] | 225 | |
kkanetkar@chromium.org | 3a3bdea | 2010-09-02 12:43:36 +0900 | [diff] [blame] | 226 | #endif // BASE_FILE_UTIL_PROXY_H_ |