Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(767)

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h

Issue 2285393003: Add API to get a folder's size. (Closed)
Patch Set: Add API to get a folder's size. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 method.
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698