Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Unified Diff: components/drive/chromeos/resource_metadata.h

Issue 2799603002: Process TeamDrive change in change list. (Closed)
Patch Set: Add test for update. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698