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_DRIVE_API_PARSER_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_PARSER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_PARSER_H_ | 6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_PARSER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
| 15 #include "base/string_piece.h" | 15 #include "base/string_piece.h" |
| 16 #include "base/time.h" | 16 #include "base/time.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 static void RegisterJSONConverter( | 91 static void RegisterJSONConverter( |
| 92 base::JSONValueConverter<DriveAppIcon>* converter); | 92 base::JSONValueConverter<DriveAppIcon>* converter); |
| 93 | 93 |
| 94 // Creates drive app icon instance from parsed JSON. | 94 // Creates drive app icon instance from parsed JSON. |
| 95 static scoped_ptr<DriveAppIcon> CreateFrom(const base::Value& value); | 95 static scoped_ptr<DriveAppIcon> CreateFrom(const base::Value& value); |
| 96 | 96 |
| 97 // Category of the icon. | 97 // Category of the icon. |
| 98 IconCategory category() const { return category_; } | 98 IconCategory category() const { return category_; } |
| 99 | 99 |
| 100 // Size in pixels of one side of the icon (icons are always square). | 100 // Size in pixels of one side of the icon (icons are always square). |
| 101 const int icon_side_length() const { return icon_side_length_; } | 101 int icon_side_length() const { return icon_side_length_; } |
|
satorux1
2012/09/07 17:22:32
I'd suggest to make changes like this in a separat
nhiroki
2012/09/10 07:17:38
I made the separate patch (http://codereview.chrom
| |
| 102 | 102 |
| 103 // Returns URL for this icon. | 103 // Returns URL for this icon. |
| 104 const GURL& icon_url() const { return icon_url_; } | 104 const GURL& icon_url() const { return icon_url_; } |
| 105 | 105 |
| 106 private: | 106 private: |
| 107 // Parses and initializes data members from content of |value|. | 107 // Parses and initializes data members from content of |value|. |
| 108 // Return false if parsing fails. | 108 // Return false if parsing fails. |
| 109 bool Parse(const base::Value& value); | 109 bool Parse(const base::Value& value); |
| 110 | 110 |
| 111 // Extracts the icon category from the given string. Returns false and does | 111 // Extracts the icon category from the given string. Returns false and does |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 583 std::string next_page_token_; | 583 std::string next_page_token_; |
| 584 GURL next_link_; | 584 GURL next_link_; |
| 585 int64 largest_change_id_; | 585 int64 largest_change_id_; |
| 586 ScopedVector<ChangeResource> items_; | 586 ScopedVector<ChangeResource> items_; |
| 587 | 587 |
| 588 DISALLOW_COPY_AND_ASSIGN(ChangeList); | 588 DISALLOW_COPY_AND_ASSIGN(ChangeList); |
| 589 }; | 589 }; |
| 590 | 590 |
| 591 } // namespace gdata | 591 } // namespace gdata |
| 592 | 592 |
| 593 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_PARSER_H_ | 593 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_PARSER_H_ |
| OLD | NEW |