Chromium Code Reviews| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 | 55 |
| 56 // Grants read-only file access permissions to the process whose id is |pid| | 56 // Grants read-only file access permissions to the process whose id is |pid| |
| 57 // with ChildProcessSecurityPolicy for all possible cache paths that may be | 57 // with ChildProcessSecurityPolicy for all possible cache paths that may be |
| 58 // given to the specified file. | 58 // given to the specified file. |
| 59 void SetPermissionsForGDataCacheFiles(Profile* profile, | 59 void SetPermissionsForGDataCacheFiles(Profile* profile, |
| 60 int pid, | 60 int pid, |
| 61 const FilePath& path); | 61 const FilePath& path); |
| 62 | 62 |
| 63 // Returns true if gdata is currently active with the specified profile. | 63 // Returns true if gdata is currently active with the specified profile. |
| 64 bool IsGDataAvailable(Profile* profile); | 64 bool IsGDataAvailable(Profile* profile); |
| 65 | |
| 66 // Extracts resource_id, md5, and extra_suffix from cache path. | |
|
satorux1
2012/04/20 21:46:10
would be nice to add some example of input and out
| |
| 67 void ParseCacheFilePath(const FilePath& path, | |
| 68 std::string* resource_id, | |
| 69 std::string* md5, | |
| 70 std::string* extra_suffix); | |
|
satorux1
2012/04/20 21:46:10
i suggested "suffix", but "extension" would be bet
satorux1
2012/04/20 23:05:39
missed this comment?
| |
| 65 } // namespace util | 71 } // namespace util |
| 66 } // namespace gdata | 72 } // namespace gdata |
| 67 | 73 |
| 68 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UTIL_H_ | 74 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UTIL_H_ |
| OLD | NEW |