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

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

Issue 13401003: chromeos: Replace resource ID in drive URL with path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ Created 7 years, 8 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_DRIVE_FILE_SYSTEM_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // implementation and is not supposed to be sent to the server. 83 // implementation and is not supposed to be sent to the server.
84 bool IsSpecialResourceId(const std::string& resource_id); 84 bool IsSpecialResourceId(const std::string& resource_id);
85 85
86 // Returns the Drive mount path as string. 86 // Returns the Drive mount path as string.
87 const std::string& GetDriveMountPointPathAsString(); 87 const std::string& GetDriveMountPointPathAsString();
88 88
89 // Returns the 'local' root of remote file system as "/special". 89 // Returns the 'local' root of remote file system as "/special".
90 const base::FilePath& GetSpecialRemoteRootPath(); 90 const base::FilePath& GetSpecialRemoteRootPath();
91 91
92 // Returns the gdata file resource url formatted as 92 // Returns the gdata file resource url formatted as
93 // chrome://drive/<resource_id>/<file_name>. 93 // drive:<path>
94 GURL GetFileResourceUrl(const std::string& resource_id, 94 GURL GetFileResourceUrl(const base::FilePath& path);
95 const std::string& file_name);
96 95
97 // Given a profile and a drive_cache_path, return the file resource url. 96 // Given a profile and a drive_cache_path, return the file resource url.
98 void ModifyDriveFileResourceUrl(Profile* profile, 97 void ModifyDriveFileResourceUrl(Profile* profile,
99 const base::FilePath& drive_cache_path, 98 const base::FilePath& drive_cache_path,
100 GURL* url); 99 GURL* url);
101 100
102 // Returns true if the given path is under the Drive mount point. 101 // Returns true if the given path is under the Drive mount point.
103 bool IsUnderDriveMountPoint(const base::FilePath& path); 102 bool IsUnderDriveMountPoint(const base::FilePath& path);
104 103
105 // Returns true if the given path is under the Drive mount point and needs to be 104 // Returns true if the given path is under the Drive mount point and needs to be
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 void operator()(T* object) const { 195 void operator()(T* object) const {
197 if (object) 196 if (object)
198 object->Destroy(); 197 object->Destroy();
199 } 198 }
200 }; 199 };
201 200
202 } // namespace util 201 } // namespace util
203 } // namespace drive 202 } // namespace drive
204 203
205 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_UTIL_H_ 204 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698