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

Side by Side Diff: chrome/browser/chromeos/drive/file_system_util.h

Issue 197013007: Set drive as the default download folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version 1 Created 6 years, 9 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
OLDNEW
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_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Returns the path of the top root of the pseudo tree. 56 // Returns the path of the top root of the pseudo tree.
57 const base::FilePath& GetDriveGrandRootPath(); 57 const base::FilePath& GetDriveGrandRootPath();
58 58
59 // Returns the path of the directory representing "My Drive". 59 // Returns the path of the directory representing "My Drive".
60 const base::FilePath& GetDriveMyDriveRootPath(); 60 const base::FilePath& GetDriveMyDriveRootPath();
61 61
62 // Returns the Drive mount point path, which looks like "/special/drive-<hash>". 62 // Returns the Drive mount point path, which looks like "/special/drive-<hash>".
63 base::FilePath GetDriveMountPointPath(Profile* profile); 63 base::FilePath GetDriveMountPointPath(Profile* profile);
64 64
65 // Returns the Drive mount point path, which looks like
66 // "/special/drive-<username_hash>" when provided with the <username_hash>
bartfab (slow) 2014/03/13 13:20:00 Nit 1: Add comma before "when". Nit 2: Add full st
67 base::FilePath GetDriveMountPointPathUsingUserHash(std::string username_hash);
bartfab (slow) 2014/03/13 13:20:00 Nit 1: After an unfortunate proliferation of many
68
65 // Returns the FileSystem for the |profile|. If not available (not mounted 69 // Returns the FileSystem for the |profile|. If not available (not mounted
66 // or disabled), returns NULL. 70 // or disabled), returns NULL.
67 FileSystemInterface* GetFileSystemByProfile(Profile* profile); 71 FileSystemInterface* GetFileSystemByProfile(Profile* profile);
68 72
69 // Returns a FileSystemInterface instance for the |profile_id|, or NULL 73 // Returns a FileSystemInterface instance for the |profile_id|, or NULL
70 // if the Profile for |profile_id| is destructed or Drive File System is 74 // if the Profile for |profile_id| is destructed or Drive File System is
71 // disabled for the profile. 75 // disabled for the profile.
72 // Note: |profile_id| should be the pointer of the Profile instance if it is 76 // Note: |profile_id| should be the pointer of the Profile instance if it is
73 // alive. Considering timing issues due to task posting across threads, 77 // alive. Considering timing issues due to task posting across threads,
74 // this function can accept a dangling pointer as |profile_id| (and will return 78 // this function can accept a dangling pointer as |profile_id| (and will return
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 DRIVE_CONNECTED, 216 DRIVE_CONNECTED,
213 }; 217 };
214 218
215 // Returns the Drive connection status for the |profile|. 219 // Returns the Drive connection status for the |profile|.
216 ConnectionStatusType GetDriveConnectionStatus(Profile* profile); 220 ConnectionStatusType GetDriveConnectionStatus(Profile* profile);
217 221
218 } // namespace util 222 } // namespace util
219 } // namespace drive 223 } // namespace drive
220 224
221 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UTIL_H_ 225 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698