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

Unified Diff: chrome/browser/chromeos/gdata/gdata_files.h

Issue 10270027: gdata: Export PlatformFileInfo/Proto conversion functions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_files.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_files.h
diff --git a/chrome/browser/chromeos/gdata/gdata_files.h b/chrome/browser/chromeos/gdata/gdata_files.h
index 9f581391e401952e19a137fae1a2ad4a055d66a7..d3390aecf631db075f97a4e6164b512bab337c01 100644
--- a/chrome/browser/chromeos/gdata/gdata_files.h
+++ b/chrome/browser/chromeos/gdata/gdata_files.h
@@ -33,6 +33,7 @@ class GDataEntryProto;
class GDataFileProto;
class GDataDirectoryProto;
class GDataRootDirectoryProto;
+class PlatformFileInfoProto;
achuithb 2012/04/30 23:51:33 I'd make this the first declaration in this proto
// Directory content origin.
enum ContentOrigin {
@@ -136,6 +137,16 @@ class GDataEntry {
// de-duplication (see AddEntry() for details on de-duplication).
virtual void SetFileNameFromTitle();
+ // Convert the proto representation to the platform file.
achuithb 2012/04/30 23:51:33 Can we keep all the proto methods grouped together
satorux1 2012/05/01 00:13:46 Done.
+ static void ConvertProtoToPlatformFileInfo(
+ const PlatformFileInfoProto& proto,
+ base::PlatformFileInfo* file_info);
+
+ // Converts the platform file info to the proto representation.
+ static void ConvertPlatformFileInfoToProto(
+ const base::PlatformFileInfo& file_info,
+ PlatformFileInfoProto* proto);
+
protected:
// For access to SetParent from AddEntry.
friend class GDataDirectory;
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_files.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698