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 22 matching lines...) Expand all Loading... |
33 CloseFile(extensions::EventRouter* event_router, | 33 CloseFile(extensions::EventRouter* event_router, |
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_next) OVERRIDE; | 43 bool has_more) OVERRIDE; |
44 virtual void OnError(int request_id, base::File::Error error) OVERRIDE; | 44 virtual void OnError(int request_id, base::File::Error error) OVERRIDE; |
45 | 45 |
46 private: | 46 private: |
47 int open_request_id_; | 47 int open_request_id_; |
48 const fileapi::AsyncFileUtil::StatusCallback callback_; | 48 const fileapi::AsyncFileUtil::StatusCallback callback_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(CloseFile); | 50 DISALLOW_COPY_AND_ASSIGN(CloseFile); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace operations | 53 } // namespace operations |
54 } // namespace file_system_provider | 54 } // namespace file_system_provider |
55 } // namespace chromeos | 55 } // namespace chromeos |
56 | 56 |
57 #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 |