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

Unified Diff: components/drive/resource_entry_conversion.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/resource_entry_conversion.h
diff --git a/components/drive/resource_entry_conversion.h b/components/drive/resource_entry_conversion.h
index 2de228e7e08855f2bed4f9634dd83598518af29c..1e26085f32330efeb49ba0cf875c5c07d74f5ba4 100644
--- a/components/drive/resource_entry_conversion.h
+++ b/components/drive/resource_entry_conversion.h
@@ -17,6 +17,7 @@ class FileResource;
namespace drive {
class ResourceEntry;
+class TeamDriveChange;
// Converts a google_apis::ChangeResource into a drive::ResourceEntry.
// If the conversion succeeded, return true and sets the result to |out_entry|.
@@ -37,6 +38,13 @@ bool ConvertChangeResourceToResourceEntry(
ResourceEntry* out_entry,
std::string* out_parent_resource_id);
+// Converts a google_apis::ChangeResource into a drive::TeamDriveChange.
+// If the conversion succeeded, return true and sets the result to
+// |out_team_drive|.
+bool ConvertChangeResourceToTeamDriveChange(
+ const google_apis::ChangeResource& input,
+ TeamDriveChange* out_team_drive);
+
// Converts a google_apis::FileResource into a drive::ResourceEntry.
// Also see the comment for ConvertChangeResourceToResourceEntry above.
bool ConvertFileResourceToResourceEntry(

Powered by Google App Engine
This is Rietveld 408576698