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

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: polish 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..e53102a140e14b73c00c6ccbd7921454e1172d23 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;
// Directory content origin.
enum ContentOrigin {
@@ -81,6 +82,16 @@ class GDataEntry {
static scoped_ptr<GDataEntry> FromProtoString(
const std::string& serialized_proto);
+ // Converts the proto representation to the platform file.
+ 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);
+
// Converts to/from proto.
void FromProto(const GDataEntryProto& proto);
void ToProto(GDataEntryProto* proto) const;
« 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