| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 265 |
| 266 // Registers the mapping between JSON field names and the members in | 266 // Registers the mapping between JSON field names and the members in |
| 267 // this class. | 267 // this class. |
| 268 static void RegisterJSONConverter( | 268 static void RegisterJSONConverter( |
| 269 base::JSONValueConverter<AppIcon>* converter); | 269 base::JSONValueConverter<AppIcon>* converter); |
| 270 | 270 |
| 271 // Category of the icon. | 271 // Category of the icon. |
| 272 IconCategory category() const { return category_; } | 272 IconCategory category() const { return category_; } |
| 273 | 273 |
| 274 // Size in pixels of one side of the icon (icons are always square). | 274 // Size in pixels of one side of the icon (icons are always square). |
| 275 const int icon_side_length() const { return icon_side_length_; } | 275 int icon_side_length() const { return icon_side_length_; } |
| 276 | 276 |
| 277 // Get a list of links available for this AppIcon. | 277 // Get a list of links available for this AppIcon. |
| 278 const ScopedVector<Link>& links() const { return links_; } | 278 const ScopedVector<Link>& links() const { return links_; } |
| 279 | 279 |
| 280 // Get the icon URL from the internal list of links. Returns the first | 280 // Get the icon URL from the internal list of links. Returns the first |
| 281 // icon URL found in the list. | 281 // icon URL found in the list. |
| 282 GURL GetIconURL() const; | 282 GURL GetIconURL() const; |
| 283 | 283 |
| 284 private: | 284 private: |
| 285 // Extracts the icon category from the given string. Returns false and does | 285 // Extracts the icon category from the given string. Returns false and does |
| (...skipping 424 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 |