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/chromeos/drive/change_list_processor.h

Issue 13866009: Remove root resource id aliasing from DriveResourceMetadata. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove other resource id check. Created 7 years, 8 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
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_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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 ChangeListToEntryProtoMapUMAStats* uma_stats); 84 ChangeListToEntryProtoMapUMAStats* uma_stats);
85 85
86 // A map of DriveEntryProto's representing a feed. 86 // A map of DriveEntryProto's representing a feed.
87 const DriveEntryProtoMap& entry_proto_map() const { return entry_proto_map_; } 87 const DriveEntryProtoMap& entry_proto_map() const { return entry_proto_map_; }
88 88
89 // The set of changed directories as a result of feed processing. 89 // The set of changed directories as a result of feed processing.
90 const std::set<base::FilePath>& changed_dirs() const { return changed_dirs_; } 90 const std::set<base::FilePath>& changed_dirs() const { return changed_dirs_; }
91 91
92 private: 92 private:
93 // Applies the pre-processed feed from entry_proto_map_ onto the filesystem. 93 // Applies the pre-processed feed from entry_proto_map_ onto the filesystem.
94 void ApplyEntryProtoMap(bool is_delta_feed); 94 // If this is not delta feed update (i.e. |is_delta_feed| is false),
95 // |about_resource| must not be null.
96 void ApplyEntryProtoMap(
97 bool is_delta_feed,
98 scoped_ptr<google_apis::AboutResource> about_resource);
95 99
96 // Apply the next item from entry_proto_map_ to the file system. The async 100 // Apply the next item from entry_proto_map_ to the file system. The async
97 // version posts to the message loop to avoid recursive stack-overflow. 101 // version posts to the message loop to avoid recursive stack-overflow.
98 void ApplyNextEntryProto(); 102 void ApplyNextEntryProto();
99 void ApplyNextEntryProtoAsync(); 103 void ApplyNextEntryProtoAsync();
100 104
101 // Apply |entry_proto| to resource_metadata_. 105 // Apply |entry_proto| to resource_metadata_.
102 void ApplyEntryProto(const DriveEntryProto& entry_proto); 106 void ApplyEntryProto(const DriveEntryProto& entry_proto);
103 107
104 // Continue ApplyEntryProto. This is a callback for 108 // Continue ApplyEntryProto. This is a callback for
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 193
190 // Note: This should remain the last member so it'll be destroyed and 194 // Note: This should remain the last member so it'll be destroyed and
191 // invalidate its weak pointers before any other members are destroyed. 195 // invalidate its weak pointers before any other members are destroyed.
192 base::WeakPtrFactory<ChangeListProcessor> weak_ptr_factory_; 196 base::WeakPtrFactory<ChangeListProcessor> weak_ptr_factory_;
193 DISALLOW_COPY_AND_ASSIGN(ChangeListProcessor); 197 DISALLOW_COPY_AND_ASSIGN(ChangeListProcessor);
194 }; 198 };
195 199
196 } // namespace drive 200 } // namespace drive
197 201
198 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_CHANGE_LIST_PROCESSOR_H_ 202 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_CHANGE_LIST_PROCESSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/change_list_loader.cc ('k') | chrome/browser/chromeos/drive/change_list_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698