Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_PARSER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_PARSER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_PARSER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_PARSER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 class ChangeList; | 42 class ChangeList; |
| 43 class ChangeResource; | 43 class ChangeResource; |
| 44 class FileList; | 44 class FileList; |
| 45 class FileResource; | 45 class FileResource; |
| 46 | 46 |
| 47 // Defines link (URL) of an entity (document, file, feed...). Each entity could | 47 // Defines link (URL) of an entity (document, file, feed...). Each entity could |
| 48 // have more than one link representing it. | 48 // have more than one link representing it. |
| 49 class Link { | 49 class Link { |
| 50 public: | 50 public: |
| 51 enum LinkType { | 51 enum LinkType { |
| 52 UNKNOWN, | 52 kUnknown, |
| 53 SELF, | 53 kSelf, |
| 54 NEXT, | 54 kNext, |
| 55 PARENT, | 55 kParent, |
| 56 ALTERNATE, | 56 kAlternate, |
| 57 EDIT, | 57 kEdit, |
| 58 EDIT_MEDIA, | 58 kEditMedia, |
| 59 ALT_EDIT_MEDIA, | 59 kAltEditMedia, |
| 60 ALT_POST, | 60 kAltPost, |
| 61 FEED, | 61 kFeed, |
| 62 POST, | 62 kPost, |
| 63 BATCH, | 63 kBatch, |
| 64 RESUMABLE_EDIT_MEDIA, | 64 kResumableEditMedia, |
| 65 RESUMABLE_CREATE_MEDIA, | 65 kResumableCreateMedia, |
| 66 TABLES_FEED, | 66 kTablesFeed, |
| 67 WORKSHEET_FEED, | 67 kWorksheetFeed, |
| 68 THUMBNAIL, | 68 kThumbnail, |
| 69 EMBED, | 69 kEmbed, |
| 70 PRODUCT, | 70 kProduct, |
| 71 ICON, | 71 kIcon, |
| 72 OPEN_WITH, | 72 kOpenWith, |
|
satorux1
2012/09/07 17:08:50
This is not allowed. Filed a bug: http://code.goog
| |
| 73 }; | 73 }; |
| 74 Link(); | 74 Link(); |
| 75 ~Link(); | 75 ~Link(); |
| 76 | 76 |
| 77 // Registers the mapping between JSON field names and the members in | 77 // Registers the mapping between JSON field names and the members in |
| 78 // this class. | 78 // this class. |
| 79 static void RegisterJSONConverter(base::JSONValueConverter<Link>* converter); | 79 static void RegisterJSONConverter(base::JSONValueConverter<Link>* converter); |
| 80 | 80 |
| 81 // Creates document entry from parsed XML. | 81 // Creates document entry from parsed XML. |
| 82 static Link* CreateFromXml(XmlReader* xml_reader); | 82 static Link* CreateFromXml(XmlReader* xml_reader); |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 710 int64 largest_changestamp_; | 710 int64 largest_changestamp_; |
| 711 ScopedVector<InstalledApp> installed_apps_; | 711 ScopedVector<InstalledApp> installed_apps_; |
| 712 | 712 |
| 713 DISALLOW_COPY_AND_ASSIGN(AccountMetadataFeed); | 713 DISALLOW_COPY_AND_ASSIGN(AccountMetadataFeed); |
| 714 }; | 714 }; |
| 715 | 715 |
| 716 | 716 |
| 717 } // namespace gdata | 717 } // namespace gdata |
| 718 | 718 |
| 719 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_PARSER_H_ | 719 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_WAPI_PARSER_H_ |
| OLD | NEW |