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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_util.h

Issue 10116044: gdata: Support mounting archive files in GData cache. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: gdata: Support mounting archive files in GData cache. Created 8 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
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_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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698