Index: chrome/browser/chromeos/gdata/gdata_util.h |
diff --git a/chrome/browser/chromeos/gdata/gdata_util.h b/chrome/browser/chromeos/gdata/gdata_util.h |
index 594bc0cf5d46b4e6b826db4e319c773db6eb3991..cf5cd118c9d65fefaa74b9d1e2d32e28b7e9db7b 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_util.h |
+++ b/chrome/browser/chromeos/gdata/gdata_util.h |
@@ -7,6 +7,7 @@ |
#pragma once |
#include <string> |
+#include <vector> |
#include "googleurl/src/gurl.h" |
@@ -43,6 +44,13 @@ bool IsUnderGDataMountPoint(const FilePath& path); |
// Examples: ExtractGDatPath("/special/gdata/foo.txt") => "gdata/foo.txt" |
FilePath ExtractGDataPath(const FilePath& path); |
+// Returns vector of all possible cache paths for a given path on gdata mount |
+// point. |
+void InsertGDataCachePathsPermissions( |
+ Profile* profile_, |
+ const FilePath& gdata_path, |
+ std::vector<std::pair<FilePath, int> >* cache_paths); |
+ |
// Grants read-only file access permissions to the process whose id is |pid| |
// with ChildProcessSecurityPolicy for all possible cache paths that may be |
// given to the specified file. |