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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 EnsureFileDownloaded( |
126 const base::FilePath& file_path, | 126 const base::FilePath& file_path, |
127 DriveClientContext context, | 127 const ClientContext& context, |
128 const GetFileContentInitializedCallback& initialized_callback, | 128 const GetFileContentInitializedCallback& initialized_callback, |
129 const google_apis::GetContentCallback& get_content_callback, | 129 const google_apis::GetContentCallback& get_content_callback, |
130 const GetFileCallback& completion_callback); | 130 const GetFileCallback& completion_callback); |
131 | 131 |
132 // Wrapper function for update_operation_. | 132 // Wrapper function for update_operation_. |
133 // |callback| must not be null. | 133 // |callback| must not be null. |
134 void UpdateFileByResourceId(const std::string& resource_id, | 134 void UpdateFileByResourceId(const std::string& resource_id, |
135 DriveClientContext context, | 135 const ClientContext& context, |
136 const FileOperationCallback& callback); | 136 const FileOperationCallback& callback); |
137 | 137 |
138 // Wrapper function for search_operation_. | 138 // Wrapper function for search_operation_. |
139 // |callback| must not be null. | 139 // |callback| must not be null. |
140 void Search(const std::string& search_query, | 140 void Search(const std::string& search_query, |
141 const GURL& next_feed, | 141 const GURL& next_feed, |
142 const SearchOperationCallback& callback); | 142 const SearchOperationCallback& callback); |
143 | 143 |
144 private: | 144 private: |
145 scoped_ptr<CopyOperation> copy_operation_; | 145 scoped_ptr<CopyOperation> copy_operation_; |
146 scoped_ptr<CreateDirectoryOperation> create_directory_operation_; | 146 scoped_ptr<CreateDirectoryOperation> create_directory_operation_; |
147 scoped_ptr<CreateFileOperation> create_file_operation_; | 147 scoped_ptr<CreateFileOperation> create_file_operation_; |
148 scoped_ptr<MoveOperation> move_operation_; | 148 scoped_ptr<MoveOperation> move_operation_; |
149 scoped_ptr<RemoveOperation> remove_operation_; | 149 scoped_ptr<RemoveOperation> remove_operation_; |
150 scoped_ptr<TouchOperation> touch_operation_; | 150 scoped_ptr<TouchOperation> touch_operation_; |
151 scoped_ptr<DownloadOperation> download_operation_; | 151 scoped_ptr<DownloadOperation> download_operation_; |
152 scoped_ptr<UpdateOperation> update_operation_; | 152 scoped_ptr<UpdateOperation> update_operation_; |
153 scoped_ptr<SearchOperation> search_operation_; | 153 scoped_ptr<SearchOperation> search_operation_; |
154 }; | 154 }; |
155 | 155 |
156 } // namespace file_system | 156 } // namespace file_system |
157 } // namespace drive | 157 } // namespace drive |
158 | 158 |
159 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATIONS_H_ | 159 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATIONS_H_ |
OLD | NEW |