summaryrefslogtreecommitdiffstats
path: root/ios/chrome/browser/file_metadata_util.h
diff options
context:
space:
mode:
authorshreyasv <shreyasv@chromium.org>2015-05-29 01:02:31 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-29 08:02:53 +0000
commit6a6293f3f0b602d78d89df5802b97dfc52c7f1f7 (patch)
tree804143d2b55ffeb3b7b7d1e3cc9f6bc881d33268 /ios/chrome/browser/file_metadata_util.h
parent3785ebac79741ebc1428c9c50a8cd4bc92f0e924 (diff)
downloadchromium_src-6a6293f3f0b602d78d89df5802b97dfc52c7f1f7.zip
chromium_src-6a6293f3f0b602d78d89df5802b97dfc52c7f1f7.tar.gz
chromium_src-6a6293f3f0b602d78d89df5802b97dfc52c7f1f7.tar.bz2
Adding a util function for setting a "do not backup" bit
The "do not backup" bit can be set so that certain files/folders can be excluded from iTunes/iCloud backup. Also added a pref that indicates if the user has already set a "do not backup" bit to the OTR Profiles's state stash path Review URL: https://codereview.chromium.org/1153053009 Cr-Commit-Position: refs/heads/master@{#331934}
Diffstat (limited to 'ios/chrome/browser/file_metadata_util.h')
-rw-r--r--ios/chrome/browser/file_metadata_util.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/ios/chrome/browser/file_metadata_util.h b/ios/chrome/browser/file_metadata_util.h
new file mode 100644
index 0000000..02c2a52
--- /dev/null
+++ b/ios/chrome/browser/file_metadata_util.h
@@ -0,0 +1,19 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_FILE_METADATA_UTIL_H_
+#define IOS_CHROME_BROWSER_FILE_METADATA_UTIL_H_
+
+#include "base/files/file_path.h"
+
+namespace file_metadata_util {
+
+// Synchronously sets a bit on the file system that prevents iCloud/iTunes
+// backups of the file/folder at |path|. There must be a file/folder present at
+// |path|.
+void AddSkipSystemBackupAttributeToItem(const base::FilePath& path);
+
+} // namespace file_metadata_util
+
+#endif // IOS_CHROME_BROWSER_FILE_METADATA_UTIL_H_