Chromium Code Reviews| 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); |
|
hashimoto
2017/04/07 07:56:41
No longer needed.
yamaguchi
2017/04/07 15:31:46
Done.
|
| + |
| // 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); |
|
hashimoto
2017/04/07 07:56:41
ditto.
yamaguchi
2017/04/07 15:31:46
Done.
|
| + |
| // Recursively gets directories under the entry pointed to by |id|. |
| FileError GetSubDirectoriesRecursively( |
| const std::string& id, |