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_GOOGLE_APIS_DRIVE_API_PARSER_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_PARSER_H_ |
6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_PARSER_H_ | 6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_PARSER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 } | 560 } |
561 void set_self_link(const GURL& self_link) { | 561 void set_self_link(const GURL& self_link) { |
562 self_link_ = self_link; | 562 self_link_ = self_link; |
563 } | 563 } |
564 void set_title(const std::string& title) { | 564 void set_title(const std::string& title) { |
565 title_ = title; | 565 title_ = title; |
566 } | 566 } |
567 void set_mime_type(const std::string& mime_type) { | 567 void set_mime_type(const std::string& mime_type) { |
568 mime_type_ = mime_type; | 568 mime_type_ = mime_type; |
569 } | 569 } |
570 void set_labels(const FileLabels& labels) { | 570 FileLabels* mutable_labels() { |
571 labels_ = labels; | 571 return &labels_; |
572 } | 572 } |
573 void set_created_date(const base::Time& created_date) { | 573 void set_created_date(const base::Time& created_date) { |
574 created_date_ = created_date; | 574 created_date_ = created_date; |
575 } | 575 } |
576 void set_modified_date(const base::Time& modified_date) { | 576 void set_modified_date(const base::Time& modified_date) { |
577 modified_date_ = modified_date; | 577 modified_date_ = modified_date; |
578 } | 578 } |
579 void set_modified_by_me_date(const base::Time& modified_by_me_date) { | 579 void set_modified_by_me_date(const base::Time& modified_by_me_date) { |
580 modified_by_me_date_ = modified_by_me_date; | 580 modified_by_me_date_ = modified_by_me_date; |
581 } | 581 } |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 GURL next_link_; | 826 GURL next_link_; |
827 int64 largest_change_id_; | 827 int64 largest_change_id_; |
828 ScopedVector<ChangeResource> items_; | 828 ScopedVector<ChangeResource> items_; |
829 | 829 |
830 DISALLOW_COPY_AND_ASSIGN(ChangeList); | 830 DISALLOW_COPY_AND_ASSIGN(ChangeList); |
831 }; | 831 }; |
832 | 832 |
833 } // namespace google_apis | 833 } // namespace google_apis |
834 | 834 |
835 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_PARSER_H_ | 835 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_PARSER_H_ |
OLD | NEW |