| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DRIVE_FILE_SYSTEM_OPERATIONS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATIONS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATIONS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATIONS_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/chromeos/drive/file_system_interface.h" | 9 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
| 10 | 10 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 // Wrapper function for touch_operation_. | 116 // Wrapper function for touch_operation_. |
| 117 // |callback| must not be null. | 117 // |callback| must not be null. |
| 118 void TouchFile(const base::FilePath& file_path, | 118 void TouchFile(const base::FilePath& file_path, |
| 119 const base::Time& last_access_time, | 119 const base::Time& last_access_time, |
| 120 const base::Time& last_modified_time, | 120 const base::Time& last_modified_time, |
| 121 const FileOperationCallback& callback); | 121 const FileOperationCallback& callback); |
| 122 | 122 |
| 123 // Wrapper function for download_operation_. | 123 // Wrapper function for download_operation_. |
| 124 // |completion_callback| must not be null. | 124 // |completion_callback| must not be null. |
| 125 void EnsureFileDownloaded( | 125 void EnsureFileDownloadedByResourceId( |
| 126 const std::string& resource_id, |
| 127 const ClientContext& context, |
| 128 const GetFileContentInitializedCallback& initialized_callback, |
| 129 const google_apis::GetContentCallback& get_content_callback, |
| 130 const GetFileCallback& completion_callback); |
| 131 |
| 132 // Wrapper function for download_operation_. |
| 133 // |completion_callback| must not be null. |
| 134 void EnsureFileDownloadedByPath( |
| 126 const base::FilePath& file_path, | 135 const base::FilePath& file_path, |
| 127 const ClientContext& context, | 136 const ClientContext& context, |
| 128 const GetFileContentInitializedCallback& initialized_callback, | 137 const GetFileContentInitializedCallback& initialized_callback, |
| 129 const google_apis::GetContentCallback& get_content_callback, | 138 const google_apis::GetContentCallback& get_content_callback, |
| 130 const GetFileCallback& completion_callback); | 139 const GetFileCallback& completion_callback); |
| 131 | 140 |
| 132 // Wrapper function for update_operation_. | 141 // Wrapper function for update_operation_. |
| 133 // |callback| must not be null. | 142 // |callback| must not be null. |
| 134 void UpdateFileByResourceId(const std::string& resource_id, | 143 void UpdateFileByResourceId(const std::string& resource_id, |
| 135 const ClientContext& context, | 144 const ClientContext& context, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 150 scoped_ptr<TouchOperation> touch_operation_; | 159 scoped_ptr<TouchOperation> touch_operation_; |
| 151 scoped_ptr<DownloadOperation> download_operation_; | 160 scoped_ptr<DownloadOperation> download_operation_; |
| 152 scoped_ptr<UpdateOperation> update_operation_; | 161 scoped_ptr<UpdateOperation> update_operation_; |
| 153 scoped_ptr<SearchOperation> search_operation_; | 162 scoped_ptr<SearchOperation> search_operation_; |
| 154 }; | 163 }; |
| 155 | 164 |
| 156 } // namespace file_system | 165 } // namespace file_system |
| 157 } // namespace drive | 166 } // namespace drive |
| 158 | 167 |
| 159 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATIONS_H_ | 168 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATIONS_H_ |
| OLD | NEW |