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

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

Issue 13772005: chromeos: Stop directly downloading files to the cache directory from DriveFileSystem::GetResolvedF… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add DCHECK 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_DRIVE_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 void GetResolvedFileByPathAfterGetResourceEntry( 347 void GetResolvedFileByPathAfterGetResourceEntry(
348 scoped_ptr<GetResolvedFileParams> params, 348 scoped_ptr<GetResolvedFileParams> params,
349 google_apis::GDataErrorCode status, 349 google_apis::GDataErrorCode status,
350 scoped_ptr<google_apis::ResourceEntry> entry); 350 scoped_ptr<google_apis::ResourceEntry> entry);
351 void GetResolvedFileByPathAfterRefreshEntry( 351 void GetResolvedFileByPathAfterRefreshEntry(
352 scoped_ptr<GetResolvedFileParams> params, 352 scoped_ptr<GetResolvedFileParams> params,
353 const GURL& download_url, 353 const GURL& download_url,
354 DriveFileError error, 354 DriveFileError error,
355 const base::FilePath& drive_file_path, 355 const base::FilePath& drive_file_path,
356 scoped_ptr<DriveEntryProto> entry_proto); 356 scoped_ptr<DriveEntryProto> entry_proto);
357 void GetResolvedFileByPathAfterFreeDiskSpacePreliminarily( 357 void GetResolvedFileByPathAfterFreeDiskSpace(
358 scoped_ptr<GetResolvedFileParams> params, 358 scoped_ptr<GetResolvedFileParams> params,
359 const GURL& download_url, 359 const GURL& download_url,
360 bool has_enough_space); 360 bool has_enough_space);
361 void GetResolveFileByPathAfterCreateTemporaryFile(
362 scoped_ptr<GetResolvedFileParams> params,
363 const GURL& download_url,
364 base::FilePath* temp_file,
365 bool success);
361 void GetResolvedFileByPathAfterDownloadFile( 366 void GetResolvedFileByPathAfterDownloadFile(
362 scoped_ptr<GetResolvedFileParams> params, 367 scoped_ptr<GetResolvedFileParams> params,
363 google_apis::GDataErrorCode status, 368 google_apis::GDataErrorCode status,
364 const base::FilePath& downloaded_file_path); 369 const base::FilePath& downloaded_file_path);
365 void GetResolvedFileByPathAfterGetCacheEntryForCancel( 370 void GetResolvedFileByPathAfterGetCacheEntryForCancel(
366 const std::string& resource_id, 371 const std::string& resource_id,
367 const std::string& md5, 372 const std::string& md5,
368 bool success, 373 bool success,
369 const DriveCacheEntry& cache_entry); 374 const DriveCacheEntry& cache_entry);
370 void GetResolvedFileByPathAfterFreeDiskSpace( 375 void GetResolvedFileByPathAfterStore(
371 scoped_ptr<GetResolvedFileParams> params, 376 scoped_ptr<GetResolvedFileParams> params,
372 const base::FilePath& downloaded_file_path, 377 const base::FilePath& downloaded_file_path,
373 bool has_enough_space); 378 DriveFileError error);
379 void GetResolvedFileByPathAfterGetFile(
380 scoped_ptr<GetResolvedFileParams> params,
381 DriveFileError error,
382 const base::FilePath& cache_file);
374 383
375 // Loads the file system from the cache or the server via change lists if 384 // Loads the file system from the cache or the server via change lists if
376 // the file system is not yet loaded. Runs |callback| upon the completion 385 // the file system is not yet loaded. Runs |callback| upon the completion
377 // with the error code. |callback| must not be null. 386 // with the error code. |callback| must not be null.
378 void LoadIfNeeded(const DirectoryFetchInfo& directory_fetch_info, 387 void LoadIfNeeded(const DirectoryFetchInfo& directory_fetch_info,
379 const FileOperationCallback& callback); 388 const FileOperationCallback& callback);
380 389
381 // Part of GetEntryInfoByResourceId(). Called after 390 // Part of GetEntryInfoByResourceId(). Called after
382 // DriveResourceMetadata::GetEntryInfoByResourceId() is complete. 391 // DriveResourceMetadata::GetEntryInfoByResourceId() is complete.
383 // |callback| must not be null. 392 // |callback| must not be null.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 // Note: This should remain the last member so it'll be destroyed and 489 // Note: This should remain the last member so it'll be destroyed and
481 // invalidate the weak pointers before any other members are destroyed. 490 // invalidate the weak pointers before any other members are destroyed.
482 base::WeakPtrFactory<DriveFileSystem> weak_ptr_factory_; 491 base::WeakPtrFactory<DriveFileSystem> weak_ptr_factory_;
483 492
484 DISALLOW_COPY_AND_ASSIGN(DriveFileSystem); 493 DISALLOW_COPY_AND_ASSIGN(DriveFileSystem);
485 }; 494 };
486 495
487 } // namespace drive 496 } // namespace drive
488 497
489 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_ 498 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/drive_cache.cc ('k') | chrome/browser/chromeos/drive/drive_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698