| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_DRIVE_FILE_SYSTEM_CORE_UTIL_H_ | 5 #ifndef COMPONENTS_DRIVE_FILE_SYSTEM_CORE_UTIL_H_ |
| 6 #define COMPONENTS_DRIVE_FILE_SYSTEM_CORE_UTIL_H_ | 6 #define COMPONENTS_DRIVE_FILE_SYSTEM_CORE_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "components/drive/file_errors.h" | 12 #include "components/drive/file_errors.h" |
| 13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 namespace drive { | 15 namespace drive { |
| 16 | 16 |
| 17 class DriveAppRegistry; | |
| 18 class DriveServiceInterface; | |
| 19 class FileSystemInterface; | |
| 20 | |
| 21 namespace util { | 17 namespace util { |
| 22 | 18 |
| 23 // "drive" diretory's local ID is fixed to this value. | 19 // "drive" diretory's local ID is fixed to this value. |
| 24 const char kDriveGrandRootLocalId[] = "<drive>"; | 20 const char kDriveGrandRootLocalId[] = "<drive>"; |
| 25 | 21 |
| 26 // "drive/other" diretory's local ID is fixed to this value. | 22 // "drive/other" diretory's local ID is fixed to this value. |
| 27 const char kDriveOtherDirLocalId[] = "<other>"; | 23 const char kDriveOtherDirLocalId[] = "<other>"; |
| 28 | 24 |
| 29 // "drive/trash" diretory's local ID is fixed to this value. | 25 // "drive/trash" diretory's local ID is fixed to this value. |
| 30 const char kDriveTrashDirLocalId[] = "<trash>"; | 26 const char kDriveTrashDirLocalId[] = "<trash>"; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // Reads URL from a GDoc file. | 77 // Reads URL from a GDoc file. |
| 82 GURL ReadUrlFromGDocFile(const base::FilePath& file_path); | 78 GURL ReadUrlFromGDocFile(const base::FilePath& file_path); |
| 83 | 79 |
| 84 // Reads resource ID from a GDoc file. | 80 // Reads resource ID from a GDoc file. |
| 85 std::string ReadResourceIdFromGDocFile(const base::FilePath& file_path); | 81 std::string ReadResourceIdFromGDocFile(const base::FilePath& file_path); |
| 86 | 82 |
| 87 } // namespace util | 83 } // namespace util |
| 88 } // namespace drive | 84 } // namespace drive |
| 89 | 85 |
| 90 #endif // COMPONENTS_DRIVE_FILE_SYSTEM_CORE_UTIL_H_ | 86 #endif // COMPONENTS_DRIVE_FILE_SYSTEM_CORE_UTIL_H_ |
| OLD | NEW |