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

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

Issue 10837201: Pass parsed ChangeList to GDataFileSystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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: chrome/browser/chromeos/gdata/gdata_wapi_parser.h
diff --git a/chrome/browser/chromeos/gdata/gdata_wapi_parser.h b/chrome/browser/chromeos/gdata/gdata_wapi_parser.h
index 01c8224c8c23b8e98d05d0052b5dd37dfced7ca6..47e9ed2876ab61dd6e6315f9679553b924b190bc 100644
--- a/chrome/browser/chromeos/gdata/gdata_wapi_parser.h
+++ b/chrome/browser/chromeos/gdata/gdata_wapi_parser.h
@@ -36,6 +36,11 @@ class RepeatedMessageConverter;
// http://code.google.com/apis/documents/.
namespace gdata {
+class ChangeList;
+class ChangeResource;
+class FileList;
+class FileResource;
+
// Defines link (URL) of an entity (document, file, feed...). Each entity could
// have more than one link representing it.
class Link {
@@ -371,6 +376,12 @@ class DocumentEntry : public FeedEntry {
// Creates document entry from parsed XML.
static DocumentEntry* CreateFromXml(XmlReader* xml_reader);
+ // Creates document entry from FileResource.
satorux1 2012/08/10 18:14:34 So you plan to remove this right? Please file a bu
kochi 2012/08/13 09:08:39 Done.
+ static DocumentEntry* CreateFromFileResource(const FileResource& file);
+
+ // Creates document entry from ChangeResource.
+ static DocumentEntry* CreateFromChangeResource(const ChangeResource& change);
satorux1 2012/08/10 18:14:34 ditto.
kochi 2012/08/13 09:08:39 Done.
+
// Returns name of entry node.
static std::string GetEntryNodeName();
@@ -512,6 +523,9 @@ class DocumentFeed : public FeedEntry {
// FillRemainingFields comment and implementation in DocumentEntry
// class for the details.
static scoped_ptr<DocumentFeed> CreateFrom(const base::Value& value);
+ static scoped_ptr<DocumentFeed> CreateFromFileList(const FileList& filelist);
satorux1 2012/08/10 18:14:34 ditto.
kochi 2012/08/13 09:08:39 Done.
+ static scoped_ptr<DocumentFeed> CreateFromChangeList(
+ const ChangeList& changelist);
// Registers the mapping between JSON field names and the members in
// this class.

Powered by Google App Engine
This is Rietveld 408576698