Chromium Code Reviews| Index: base/files/file_proxy.h |
| diff --git a/base/files/file_proxy.h b/base/files/file_proxy.h |
| index 3c834f673eac90570c6be71095768ca8f90fdebf..b44288f5b504027583fea2c49f09bb7b8c893902 100644 |
| --- a/base/files/file_proxy.h |
| +++ b/base/files/file_proxy.h |
| @@ -88,8 +88,13 @@ class BASE_EXPORT FileProxy : public SupportsWeakPtr<FileProxy> { |
| // length to simulate a new file), and false otherwise. |
| bool created() const { return file_.created(); } |
| + // This object should not have a valid file_ when this method is called. |
| + void SetFile(File file); |
|
bbudge
2014/05/14 16:11:58
It seems logical to put this with the create funct
rvargas (doing something else)
2014/05/14 19:47:26
The only methods in between Create and this one ar
|
| + |
| File TakeFile(); |
| + PlatformFile GetPlatformFile() const; |
| + |
| // Proxies File::Close. The callback can be null. |
| // This returns false if task posting to |task_runner| has failed. |
| bool Close(const StatusCallback& callback); |
| @@ -127,7 +132,6 @@ class BASE_EXPORT FileProxy : public SupportsWeakPtr<FileProxy> { |
| private: |
| friend class FileHelper; |
| - void SetFile(File file); |
| TaskRunner* task_runner() { return task_runner_.get(); } |
| scoped_refptr<TaskRunner> task_runner_; |