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

Side by Side Diff: chrome/browser/chromeos/file_manager/filesystem_api_util.h

Issue 306073004: Rename "CheckWritable" to "PrepareForWritableApp" to reflect the actual behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments. Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « apps/launcher.cc ('k') | chrome/browser/chromeos/file_manager/filesystem_api_util.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // The file contains utility functions to implement chrome.fileSystem API for 5 // The file contains utility functions to implement chrome.fileSystem API for
6 // file paths that do not directly map to host machine's file system path, such 6 // file paths that do not directly map to host machine's file system path, such
7 // as Google Drive or virtual volumes provided by fileSystemProvider extensions. 7 // as Google Drive or virtual volumes provided by fileSystemProvider extensions.
8 8
9 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILESYSTEM_API_UTIL_H_ 9 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILESYSTEM_API_UTIL_H_
10 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILESYSTEM_API_UTIL_H_ 10 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILESYSTEM_API_UTIL_H_
(...skipping 22 matching lines...) Expand all
33 const base::FilePath& path, 33 const base::FilePath& path,
34 const base::Callback<void(bool, const std::string&)>& callback); 34 const base::Callback<void(bool, const std::string&)>& callback);
35 35
36 // Checks whether the |path| points to a directory, and asynchronously sends 36 // Checks whether the |path| points to a directory, and asynchronously sends
37 // the result to |callback|. 37 // the result to |callback|.
38 void IsNonNativeLocalPathDirectory( 38 void IsNonNativeLocalPathDirectory(
39 Profile* profile, 39 Profile* profile,
40 const base::FilePath& path, 40 const base::FilePath& path,
41 const base::Callback<void(bool)>& callback); 41 const base::Callback<void(bool)>& callback);
42 42
43 // Prepares a writable file at |path|, i.e., creates a file there if it didn't 43 // Ensures a file exists at |path|, i.e., it does nothing if a file is already
44 // exist, and asynchronously sends to |callback| whether it succeeded. 44 // present, or creates a file there if it isn't, and asynchronously sends to
45 void PrepareNonNativeLocalPathWritableFile( 45 // |callback| whether it succeeded.
46 void PrepareNonNativeLocalFileForWritableApp(
46 Profile* profile, 47 Profile* profile,
47 const base::FilePath& path, 48 const base::FilePath& path,
48 const base::Callback<void(bool)>& callback); 49 const base::Callback<void(bool)>& callback);
49 50
50 } // namespace util 51 } // namespace util
51 } // namespace file_manager 52 } // namespace file_manager
52 53
53 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILESYSTEM_API_UTIL_H_ 54 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILESYSTEM_API_UTIL_H_
OLDNEW
« no previous file with comments | « apps/launcher.cc ('k') | chrome/browser/chromeos/file_manager/filesystem_api_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698