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

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

Issue 118953003: drive: Stop setting dummy resource ID for "drive" and "other" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 FileSystemInterface* GetFileSystemByProfileId(void* profile_id); 77 FileSystemInterface* GetFileSystemByProfileId(void* profile_id);
78 78
79 // Returns the DriveAppRegistry for the |profile|. If not available (not 79 // Returns the DriveAppRegistry for the |profile|. If not available (not
80 // mounted or disabled), returns NULL. 80 // mounted or disabled), returns NULL.
81 DriveAppRegistry* GetDriveAppRegistryByProfile(Profile* profile); 81 DriveAppRegistry* GetDriveAppRegistryByProfile(Profile* profile);
82 82
83 // Returns the DriveService for the |profile|. If not available (not mounted 83 // Returns the DriveService for the |profile|. If not available (not mounted
84 // or disabled), returns NULL. 84 // or disabled), returns NULL.
85 DriveServiceInterface* GetDriveServiceByProfile(Profile* profile); 85 DriveServiceInterface* GetDriveServiceByProfile(Profile* profile);
86 86
87 // Checks if the resource ID is a special one, which is effective only in our
88 // implementation and is not supposed to be sent to the server.
89 bool IsSpecialResourceId(const std::string& resource_id);
90
91 // Returns a ResourceEntry for "/drive/root" directory. 87 // Returns a ResourceEntry for "/drive/root" directory.
92 ResourceEntry CreateMyDriveRootEntry(const std::string& root_resource_id); 88 ResourceEntry CreateMyDriveRootEntry(const std::string& root_resource_id);
93 89
94 // Returns the Drive mount path as string. 90 // Returns the Drive mount path as string.
95 const std::string& GetDriveMountPointPathAsString(); 91 const std::string& GetDriveMountPointPathAsString();
96 92
97 // Returns the gdata file resource url formatted as "drive:<path>" 93 // Returns the gdata file resource url formatted as "drive:<path>"
98 GURL FilePathToDriveURL(const base::FilePath& path); 94 GURL FilePathToDriveURL(const base::FilePath& path);
99 95
100 // Converts a drive: URL back to a path that can be passed to FileSystem. 96 // Converts a drive: URL back to a path that can be passed to FileSystem.
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 DRIVE_CONNECTED, 216 DRIVE_CONNECTED,
221 }; 217 };
222 218
223 // Returns the Drive connection status for the |profile|. 219 // Returns the Drive connection status for the |profile|.
224 ConnectionStatusType GetDriveConnectionStatus(Profile* profile); 220 ConnectionStatusType GetDriveConnectionStatus(Profile* profile);
225 221
226 } // namespace util 222 } // namespace util
227 } // namespace drive 223 } // namespace drive
228 224
229 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UTIL_H_ 225 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_unittest.cc ('k') | chrome/browser/chromeos/drive/file_system_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698