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

Unified Diff: components/drive/file_system_core_util.h

Issue 1296483003: Move chrome/browser/chromeos/drive/resource* (+deps) into components/drive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/drive/file_cache_unittest.cc ('k') | components/drive/file_system_core_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/file_system_core_util.h
diff --git a/chrome/browser/chromeos/drive/file_system_core_util.h b/components/drive/file_system_core_util.h
similarity index 78%
rename from chrome/browser/chromeos/drive/file_system_core_util.h
rename to components/drive/file_system_core_util.h
index af7375088357ff540b33003bc466a0c09aceddf2..c273cbe605a975142e74354bf72ad6ae92de7050 100644
--- a/chrome/browser/chromeos/drive/file_system_core_util.h
+++ b/components/drive/file_system_core_util.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_CORE_UTIL_H_
-#define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_CORE_UTIL_H_
+#ifndef COMPONENTS_DRIVE_FILE_SYSTEM_CORE_UTIL_H_
+#define COMPONENTS_DRIVE_FILE_SYSTEM_CORE_UTIL_H_
hashimoto 2015/08/14 00:47:54 nit: How about naming this file components/drive/f
Łukasz Anforowicz 2015/08/14 17:14:45 Done.
Łukasz Anforowicz 2015/08/19 19:12:28 Actually, I need to undo this renaming, because 1)
#include <string>
@@ -42,18 +42,6 @@ const base::FilePath& GetDriveGrandRootPath();
// Returns the path of the directory representing "My Drive".
const base::FilePath& GetDriveMyDriveRootPath();
-// Returns the Drive mount point path, which looks like
-// "/special/drive-<username_hash>", when provided with the |user_id_hash|.
-base::FilePath GetDriveMountPointPathForUserIdHash(std::string user_id_hash);
-
-// Returns true if the given path is under the Drive mount point.
-bool IsUnderDriveMountPoint(const base::FilePath& path);
-
-// Extracts the Drive path from the given path located under the Drive mount
-// point. Returns an empty path if |path| is not under the Drive mount point.
-// Examples: ExtractDrivePath("/special/drive-xxx/foo.txt") => "drive/foo.txt"
-base::FilePath ExtractDrivePath(const base::FilePath& path);
-
// Escapes a file name in Drive cache.
// Replaces percent ('%'), period ('.') and slash ('/') with %XX (hex)
std::string EscapeCacheFileName(const std::string& filename);
@@ -99,4 +87,4 @@ std::string ReadResourceIdFromGDocFile(const base::FilePath& file_path);
} // namespace util
} // namespace drive
-#endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_CORE_UTIL_H_
+#endif // COMPONENTS_DRIVE_FILE_SYSTEM_CORE_UTIL_H_
« no previous file with comments | « components/drive/file_cache_unittest.cc ('k') | components/drive/file_system_core_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698