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

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

Issue 16190003: drive: Add DownloadOperation::EnsureFileDownloadedByResourceId (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_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 293
294 // Part of GetResourceEntryById(). Called after 294 // Part of GetResourceEntryById(). Called after
295 // ResourceMetadata::GetResourceEntryById() is complete. 295 // ResourceMetadata::GetResourceEntryById() is complete.
296 // |callback| must not be null. 296 // |callback| must not be null.
297 void GetResourceEntryByIdAfterGetEntry( 297 void GetResourceEntryByIdAfterGetEntry(
298 const GetResourceEntryWithFilePathCallback& callback, 298 const GetResourceEntryWithFilePathCallback& callback,
299 FileError error, 299 FileError error,
300 const base::FilePath& file_path, 300 const base::FilePath& file_path,
301 scoped_ptr<ResourceEntry> entry); 301 scoped_ptr<ResourceEntry> entry);
302 302
303 // Part of GetFileByResourceId(). Called after
304 // ResourceMetadata::GetResourceEntryById() is complete.
305 // |get_file_callback| must not be null.
306 // |get_content_callback| may be null.
307 void GetFileByResourceIdAfterGetEntry(
308 const ClientContext& context,
309 const GetFileCallback& get_file_callback,
310 const google_apis::GetContentCallback& get_content_callback,
311 FileError error,
312 const base::FilePath& file_path,
313 scoped_ptr<ResourceEntry> entry);
314
315 // Part of RefreshDirectory(). Called after 303 // Part of RefreshDirectory(). Called after
316 // GetResourceEntryByPath() is complete. 304 // GetResourceEntryByPath() is complete.
317 void RefreshDirectoryAfterGetResourceEntry( 305 void RefreshDirectoryAfterGetResourceEntry(
318 const base::FilePath& directory_path, 306 const base::FilePath& directory_path,
319 const FileOperationCallback& callback, 307 const FileOperationCallback& callback,
320 FileError error, 308 FileError error,
321 scoped_ptr<ResourceEntry> entry); 309 scoped_ptr<ResourceEntry> entry);
322 310
323 // Part of GetEntryByResourceId and GetEntryByPath. Checks whether there is a 311 // Part of GetEntryByResourceId and GetEntryByPath. Checks whether there is a
324 // local dirty cache for the entry, and if there is, replace the 312 // local dirty cache for the entry, and if there is, replace the
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 // Note: This should remain the last member so it'll be destroyed and 375 // Note: This should remain the last member so it'll be destroyed and
388 // invalidate the weak pointers before any other members are destroyed. 376 // invalidate the weak pointers before any other members are destroyed.
389 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; 377 base::WeakPtrFactory<FileSystem> weak_ptr_factory_;
390 378
391 DISALLOW_COPY_AND_ASSIGN(FileSystem); 379 DISALLOW_COPY_AND_ASSIGN(FileSystem);
392 }; 380 };
393 381
394 } // namespace drive 382 } // namespace drive
395 383
396 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ 384 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698