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

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

Issue 10542076: ABANDONED: chromeos: Download contacts (work in progress). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor changes Created 8 years, 5 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 | « chrome/browser/chromeos/gdata/gdata_system_service.cc ('k') | chrome/browser/chromeos/gdata/gdata_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_util.h
diff --git a/chrome/browser/chromeos/gdata/gdata_util.h b/chrome/browser/chromeos/gdata/gdata_util.h
index 05078a8f5b65ae5a54deede0751951b0e6c914ce..6c9d1943eb2fb992ad3d74efa72893df90d7bc7b 100644
--- a/chrome/browser/chromeos/gdata/gdata_util.h
+++ b/chrome/browser/chromeos/gdata/gdata_util.h
@@ -11,6 +11,7 @@
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
#include "base/platform_file.h"
+#include "base/time.h"
#include "chrome/browser/chromeos/gdata/gdata_errorcode.h"
#include "googleurl/src/gurl.h"
@@ -101,11 +102,14 @@ bool IsDriveV2ApiEnabled();
// Returns a PlatformFileError that corresponds to the GDataFileError provided.
base::PlatformFileError GDataFileErrorToPlatformError(GDataFileError error);
-// Returns true when time string is successfully parsed and output as |time|.
-// The time string must be in format yyyy-mm-ddThh:mm:ss.dddTZ (TZ is either
-// '+hh:mm', '-hh:mm', 'Z' (representing UTC) or empty string).
+// Parses an RFC 3339 date/time into a base::Time, returning true on success.
+// The time string must be in the format "yyyy-mm-ddThh:mm:ss.dddTZ" (TZ is
+// either '+hh:mm', '-hh:mm', 'Z' (representing UTC), or an empty string).
bool GetTimeFromString(const base::StringPiece& raw_value, base::Time* time);
+// Formats a base::Time as an RFC 3339 date/time (in UTC).
+std::string FormatTimeAsString(const base::Time& time);
+
} // namespace util
} // namespace gdata
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_system_service.cc ('k') | chrome/browser/chromeos/gdata/gdata_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698