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

Side by Side Diff: chrome/browser/chromeos/drive/resource_metadata.h

Issue 15843006: Random clean up in c/b/cros/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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_RESOURCE_METADATA_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // Synchronous version of RefreshEntryOnUIThread(). 249 // Synchronous version of RefreshEntryOnUIThread().
250 FileError RefreshEntry(const ResourceEntry& entry, 250 FileError RefreshEntry(const ResourceEntry& entry,
251 base::FilePath* out_file_path, 251 base::FilePath* out_file_path,
252 ResourceEntry* out_entry); 252 ResourceEntry* out_entry);
253 253
254 // Removes all child files of the directory pointed by 254 // Removes all child files of the directory pointed by
255 // |directory_fetch_info| and replaces them with 255 // |directory_fetch_info| and replaces them with
256 // |entry_map|. The changestamp of the directory will be updated per 256 // |entry_map|. The changestamp of the directory will be updated per
257 // |directory_fetch_info|. |callback| is called with the directory path. 257 // |directory_fetch_info|. |callback| is called with the directory path.
258 // |callback| must not be null. 258 // |callback| must not be null.
259 //
260 // TODO(satorux): For "fast fetch" crbug.com/178348, this function should
261 // be able to update child directories too. The existing directories should
262 // remain as-is, but the new directories should be added with changestamp
263 // set to zero, which will be fast fetched.
264 // Must be called on the UI thread. 259 // Must be called on the UI thread.
265 void RefreshDirectoryOnUIThread( 260 void RefreshDirectoryOnUIThread(
266 const DirectoryFetchInfo& directory_fetch_info, 261 const DirectoryFetchInfo& directory_fetch_info,
267 const ResourceEntryMap& entry_map, 262 const ResourceEntryMap& entry_map,
268 const FileMoveCallback& callback); 263 const FileMoveCallback& callback);
269 264
270 // Recursively get child directories of entry pointed to by |resource_id|. 265 // Recursively get child directories of entry pointed to by |resource_id|.
271 // Must be called on the UI thread. 266 // Must be called on the UI thread.
272 void GetChildDirectoriesOnUIThread( 267 void GetChildDirectoriesOnUIThread(
273 const std::string& resource_id, 268 const std::string& resource_id,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // invalidate its weak pointers before other members are destroyed. 367 // invalidate its weak pointers before other members are destroyed.
373 base::WeakPtrFactory<ResourceMetadata> weak_ptr_factory_; 368 base::WeakPtrFactory<ResourceMetadata> weak_ptr_factory_;
374 369
375 DISALLOW_COPY_AND_ASSIGN(ResourceMetadata); 370 DISALLOW_COPY_AND_ASSIGN(ResourceMetadata);
376 }; 371 };
377 372
378 } // namespace internal 373 } // namespace internal
379 } // namespace drive 374 } // namespace drive
380 375
381 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_H_ 376 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_unittest.cc ('k') | chrome/browser/chromeos/drive/webkit_file_stream_reader_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698