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_DRIVE_CHANGE_LIST_PROCESSOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_CHANGE_LIST_PROCESSOR_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_CHANGE_LIST_PROCESSOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_CHANGE_LIST_PROCESSOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 std::vector<ResourceEntry>* mutable_entries() { return &entries_; } | 68 std::vector<ResourceEntry>* mutable_entries() { return &entries_; } |
69 const std::vector<std::string>& parent_resource_ids() const { | 69 const std::vector<std::string>& parent_resource_ids() const { |
70 return parent_resource_ids_; | 70 return parent_resource_ids_; |
71 } | 71 } |
72 std::vector<std::string>* mutable_parent_resource_ids() { | 72 std::vector<std::string>* mutable_parent_resource_ids() { |
73 return &parent_resource_ids_; | 73 return &parent_resource_ids_; |
74 } | 74 } |
75 const GURL& next_url() const { return next_url_; } | 75 const GURL& next_url() const { return next_url_; } |
76 int64 largest_changestamp() const { return largest_changestamp_; } | 76 int64 largest_changestamp() const { return largest_changestamp_; } |
77 | 77 |
| 78 void set_largest_changestamp(int64 largest_changestamp) { |
| 79 largest_changestamp_ = largest_changestamp; |
| 80 } |
| 81 |
78 private: | 82 private: |
79 std::vector<ResourceEntry> entries_; | 83 std::vector<ResourceEntry> entries_; |
80 std::vector<std::string> parent_resource_ids_; | 84 std::vector<std::string> parent_resource_ids_; |
81 GURL next_url_; | 85 GURL next_url_; |
82 int64 largest_changestamp_; | 86 int64 largest_changestamp_; |
83 | 87 |
84 DISALLOW_COPY_AND_ASSIGN(ChangeList); | 88 DISALLOW_COPY_AND_ASSIGN(ChangeList); |
85 }; | 89 }; |
86 | 90 |
87 // ChangeListProcessor is used to process change lists, or full resource | 91 // ChangeListProcessor is used to process change lists, or full resource |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 ParentResourceIdMap parent_resource_id_map_; | 147 ParentResourceIdMap parent_resource_id_map_; |
144 std::set<base::FilePath> changed_dirs_; | 148 std::set<base::FilePath> changed_dirs_; |
145 | 149 |
146 DISALLOW_COPY_AND_ASSIGN(ChangeListProcessor); | 150 DISALLOW_COPY_AND_ASSIGN(ChangeListProcessor); |
147 }; | 151 }; |
148 | 152 |
149 } // namespace internal | 153 } // namespace internal |
150 } // namespace drive | 154 } // namespace drive |
151 | 155 |
152 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_CHANGE_LIST_PROCESSOR_H_ | 156 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_CHANGE_LIST_PROCESSOR_H_ |
OLD | NEW |