Index: components/drive/chromeos/resource_metadata.h |
diff --git a/components/drive/chromeos/resource_metadata.h b/components/drive/chromeos/resource_metadata.h |
index e25e572fb44161a3d3d44580ae548f69fcb30d35..91684366d96ab8a6b0e29146daae5de0cb9ce491 100644 |
--- a/components/drive/chromeos/resource_metadata.h |
+++ b/components/drive/chromeos/resource_metadata.h |
@@ -65,6 +65,9 @@ class ResourceMetadata { |
// Adds |entry| to the metadata tree based on its parent_local_id. |
FileError AddEntry(const ResourceEntry& entry, std::string* out_id); |
+ // Adds an entry which stores a Team Drive root directory. |
+ FileError AddTeamDrive(const std::string& id, const std::string& name); |
+ |
// Removes entry with |id| from its parent. |
FileError RemoveEntry(const std::string& id); |
@@ -87,6 +90,9 @@ class ResourceMetadata { |
// Replaces an existing entry with the same local ID as |entry|. |
FileError RefreshEntry(const ResourceEntry& entry); |
+ // Replaces an existing Team Drive entry with the same local ID as |id|. |
+ FileError RefreshTeamDrive(const std::string& id, const std::string& name); |
+ |
// Recursively gets directories under the entry pointed to by |id|. |
FileError GetSubDirectoriesRecursively( |
const std::string& id, |