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

Side by Side Diff: chrome/browser/google_apis/drive_api_parser.h

Issue 23627008: Replace FileResource::set_labels with mutable_labels (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698