OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // This file provides file system related API functions. | 5 // This file provides file system related API functions. |
6 | 6 |
7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_
H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_
H_ |
8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_
H_ | 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_
H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.startCopy", | 227 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.startCopy", |
228 FILEBROWSERPRIVATE_STARTCOPY) | 228 FILEBROWSERPRIVATE_STARTCOPY) |
229 | 229 |
230 FileBrowserPrivateStartCopyFunction(); | 230 FileBrowserPrivateStartCopyFunction(); |
231 | 231 |
232 protected: | 232 protected: |
233 virtual ~FileBrowserPrivateStartCopyFunction(); | 233 virtual ~FileBrowserPrivateStartCopyFunction(); |
234 | 234 |
235 // AsyncExtensionFunction overrides. | 235 // AsyncExtensionFunction overrides. |
236 virtual bool RunImpl() OVERRIDE; | 236 virtual bool RunImpl() OVERRIDE; |
| 237 |
| 238 private: |
| 239 // Part of RunImpl(). Called after Copy() is started on IO thread. |
| 240 void RunAfterStartCopy(int operation_id); |
237 }; | 241 }; |
238 | 242 |
239 // Implements the chrome.fileBrowserPrivate.cancelCopy method. | 243 // Implements the chrome.fileBrowserPrivate.cancelCopy method. |
240 class FileBrowserPrivateCancelCopyFunction | 244 class FileBrowserPrivateCancelCopyFunction |
241 : public LoggedAsyncExtensionFunction { | 245 : public LoggedAsyncExtensionFunction { |
242 public: | 246 public: |
243 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.cancelCopy", | 247 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.cancelCopy", |
244 FILEBROWSERPRIVATE_CANCELCOPY) | 248 FILEBROWSERPRIVATE_CANCELCOPY) |
245 | 249 |
246 FileBrowserPrivateCancelCopyFunction(); | 250 FileBrowserPrivateCancelCopyFunction(); |
247 | 251 |
248 protected: | 252 protected: |
249 virtual ~FileBrowserPrivateCancelCopyFunction(); | 253 virtual ~FileBrowserPrivateCancelCopyFunction(); |
250 | 254 |
251 // AsyncExtensionFunction overrides. | 255 // AsyncExtensionFunction overrides. |
252 virtual bool RunImpl() OVERRIDE; | 256 virtual bool RunImpl() OVERRIDE; |
253 }; | 257 }; |
254 | 258 |
255 } // namespace extensions | 259 } // namespace extensions |
256 | 260 |
257 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST
EM_H_ | 261 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST
EM_H_ |
OLD | NEW |