Index: platform.h |
diff --git a/platform.h b/platform.h |
index 78bb6c6816983e94b431a9fc5c39a5319d413af7..84c37649ef64f9f111ef750f8fe8d83fd4da069b 100644 |
--- a/platform.h |
+++ b/platform.h |
@@ -7,6 +7,7 @@ |
#include <base/basictypes.h> |
#include <chromeos/utility.h> |
+#include <sys/stat.h> |
#include <set> |
#include <string> |
#include <vector> |
@@ -152,6 +153,15 @@ class Platform { |
uid_t user_id, |
gid_t group_id); |
+ // Calls the platform chmod() function on the given path. |
+ // |
+ // The path may be a directory or a file. |
+ // |
+ // Parameters |
+ // path - The path to set ownership on |
+ // new_perms - an OR'd together bitfield of permissions per chmod(2) |
+ virtual bool SetPermissions(const std::string& path, mode_t new_perms); |
Will Drewry
2011/04/21 21:42:09
nit: mind adding it to mock_platform.h?
|
+ |
// Sets the current umask, returning the old mask |
// |
// Parameters |