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 <stddef.h> | 10 #include <stddef.h> |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
329 private: | 329 private: |
330 const ChromeExtensionFunctionDetails chrome_details_; | 330 const ChromeExtensionFunctionDetails chrome_details_; |
331 | 331 |
332 // Called when setting a tag is completed with either a success or an error. | 332 // Called when setting a tag is completed with either a success or an error. |
333 void OnSetEntryPropertyCompleted(drive::FileError result); | 333 void OnSetEntryPropertyCompleted(drive::FileError result); |
334 | 334 |
335 ExtensionFunction::ResponseAction Run() override; | 335 ExtensionFunction::ResponseAction Run() override; |
336 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateInternalSetEntryTagFunction); | 336 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateInternalSetEntryTagFunction); |
337 }; | 337 }; |
338 | 338 |
339 // Implements the chrome.fileManagerPrivate.getDirectorySize mothod. | |
mtomasz
2016/09/01 07:49:49
typo: method
harukam
2016/09/02 01:33:32
Sorry, thanks.
| |
340 class FileManagerPrivateInternalGetDirectorySizeFunction | |
341 : public LoggedAsyncExtensionFunction { | |
342 public: | |
343 DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.getDirectorySize", | |
344 FILEMANAGERPRIVATEINTERNAL_GETDIRECTORYSIZE) | |
345 | |
346 protected: | |
347 ~FileManagerPrivateInternalGetDirectorySizeFunction() override {} | |
348 | |
349 void OnDirectorySizeRetrieved(int64_t size); | |
350 | |
351 // AsyncExtensionFunction overrides | |
352 bool RunAsync() override; | |
353 }; | |
354 | |
339 } // namespace extensions | 355 } // namespace extensions |
340 | 356 |
341 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST EM_H_ | 357 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST EM_H_ |
OLD | NEW |