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

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: Split drive_api_parser.* part. 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..9c8a8b80712e1b116884031d8204ae62aa45035c 100644
--- a/chrome/browser/chromeos/gdata/gdata_wapi_parser.h
+++ b/chrome/browser/chromeos/gdata/gdata_wapi_parser.h
@@ -36,6 +36,13 @@ class RepeatedMessageConverter;
// http://code.google.com/apis/documents/.
namespace gdata {
+// TODO(kochi): These forward declarations will be unnecessary once
+// http://crbug.com/142293 is resolved.
+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 +378,14 @@ class DocumentEntry : public FeedEntry {
// Creates document entry from parsed XML.
static DocumentEntry* CreateFromXml(XmlReader* xml_reader);
+ // Creates document entry from FileResource.
+ // TODO(kochi): This should go away soon. http://crbug.com/142293
+ static DocumentEntry* CreateFromFileResource(const FileResource& file);
+
+ // Creates document entry from ChangeResource.
+ // Todo(Kochi): This should go away soon. http://crbug.com/142293
+ static DocumentEntry* CreateFromChangeResource(const ChangeResource& change);
+
// Returns name of entry node.
static std::string GetEntryNodeName();
@@ -512,6 +527,10 @@ class DocumentFeed : public FeedEntry {
// FillRemainingFields comment and implementation in DocumentEntry
// class for the details.
static scoped_ptr<DocumentFeed> CreateFrom(const base::Value& value);
+ // Variant of CreateFrom() above, creates feed from parsed ChangeList.
+ // TODO(kochi): This should go away soon. http://crbug.com/142293
+ 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