| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_CLOSE_FILE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_CLOSE_FILE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_CLOSE_FILE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_CLOSE_FILE_H_ |
| 7 | 7 |
| 8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/chromeos/file_system_provider/operations/operation.h" | 10 #include "chrome/browser/chromeos/file_system_provider/operations/operation.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 const ProvidedFileSystemInfo& file_system_info, | 34 const ProvidedFileSystemInfo& file_system_info, |
| 35 int open_request_id, | 35 int open_request_id, |
| 36 const fileapi::AsyncFileUtil::StatusCallback& callback); | 36 const fileapi::AsyncFileUtil::StatusCallback& callback); |
| 37 virtual ~CloseFile(); | 37 virtual ~CloseFile(); |
| 38 | 38 |
| 39 // Operation overrides. | 39 // Operation overrides. |
| 40 virtual bool Execute(int request_id) OVERRIDE; | 40 virtual bool Execute(int request_id) OVERRIDE; |
| 41 virtual void OnSuccess(int request_id, | 41 virtual void OnSuccess(int request_id, |
| 42 scoped_ptr<RequestValue> result, | 42 scoped_ptr<RequestValue> result, |
| 43 bool has_more) OVERRIDE; | 43 bool has_more) OVERRIDE; |
| 44 virtual void OnError(int request_id, | 44 virtual void OnError(int request_id, base::File::Error error) OVERRIDE; |
| 45 scoped_ptr<RequestValue> result, | |
| 46 base::File::Error error) OVERRIDE; | |
| 47 | 45 |
| 48 private: | 46 private: |
| 49 int open_request_id_; | 47 int open_request_id_; |
| 50 const fileapi::AsyncFileUtil::StatusCallback callback_; | 48 const fileapi::AsyncFileUtil::StatusCallback callback_; |
| 51 | 49 |
| 52 DISALLOW_COPY_AND_ASSIGN(CloseFile); | 50 DISALLOW_COPY_AND_ASSIGN(CloseFile); |
| 53 }; | 51 }; |
| 54 | 52 |
| 55 } // namespace operations | 53 } // namespace operations |
| 56 } // namespace file_system_provider | 54 } // namespace file_system_provider |
| 57 } // namespace chromeos | 55 } // namespace chromeos |
| 58 | 56 |
| 59 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_CLOSE_FILE_H_ | 57 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_CLOSE_FILE_H_ |
| OLD | NEW |