OLD | NEW |
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_GDATA_GDATA_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UTIL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UTIL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // Case 2: Normal files have both resource_id and md5. | 86 // Case 2: Normal files have both resource_id and md5. |
87 // Example: path="/user/GCache/v1/tmp/pdf:a1b2.01234567" => | 87 // Example: path="/user/GCache/v1/tmp/pdf:a1b2.01234567" => |
88 // resource_id="pdf:a1b2", md5="01234567", extra_extension=""; | 88 // resource_id="pdf:a1b2", md5="01234567", extra_extension=""; |
89 // Case 3: Mounted files have all three parts. | 89 // Case 3: Mounted files have all three parts. |
90 // Example: path="/user/GCache/v1/persistent/pdf:a1b2.01234567.mounted" => | 90 // Example: path="/user/GCache/v1/persistent/pdf:a1b2.01234567.mounted" => |
91 // resource_id="pdf:a1b2", md5="01234567", extra_extension="mounted". | 91 // resource_id="pdf:a1b2", md5="01234567", extra_extension="mounted". |
92 void ParseCacheFilePath(const FilePath& path, | 92 void ParseCacheFilePath(const FilePath& path, |
93 std::string* resource_id, | 93 std::string* resource_id, |
94 std::string* md5, | 94 std::string* md5, |
95 std::string* extra_extension); | 95 std::string* extra_extension); |
| 96 |
| 97 // Returns true if Drive v2 API is enabled via commandline switch. |
| 98 bool IsDriveV2ApiEnabled(); |
| 99 |
96 } // namespace util | 100 } // namespace util |
97 } // namespace gdata | 101 } // namespace gdata |
98 | 102 |
99 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UTIL_H_ | 103 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UTIL_H_ |
OLD | NEW |