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

Unified Diff: chrome/browser/chromeos/drive/drive_download_observer.h

Issue 11369019: chromeos: Stop exposing DriveDownloadObserver::GetDriveTempDownloadPath (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_download_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/drive_download_observer.h
diff --git a/chrome/browser/chromeos/drive/drive_download_observer.h b/chrome/browser/chromeos/drive/drive_download_observer.h
index bba420a282a917f3fcbd0a3960607727530d7b3c..536e81d7d3e1b5a87908178ffa329cf76c0ee43e 100644
--- a/chrome/browser/chromeos/drive/drive_download_observer.h
+++ b/chrome/browser/chromeos/drive/drive_download_observer.h
@@ -20,7 +20,6 @@ class Profile;
namespace google_apis {
class DocumentEntry;
-class DriveUploader;
}
namespace drive {
@@ -42,9 +41,11 @@ class DriveDownloadObserver : public content::DownloadManager::Observer,
const FilePath& drive_tmp_download_path);
typedef base::Callback<void(const FilePath&)>
- SubstituteDriveDownloadPathCallback;
- static void SubstituteDriveDownloadPath(Profile* profile,
- const FilePath& drive_path, content::DownloadItem* download,
+ SubstituteDriveDownloadPathCallback;
+ static void SubstituteDriveDownloadPath(
+ Profile* profile,
+ const FilePath& drive_path,
+ content::DownloadItem* download,
const SubstituteDriveDownloadPathCallback& callback);
// Sets drive path, for example, '/special/drive/MyFolder/MyFile',
@@ -71,9 +72,8 @@ class DriveDownloadObserver : public content::DownloadManager::Observer,
// becomes ready to complete. If this method is called multiple times with
// the download not ready to complete, only the last |complete_callback|
// passed to this method for |download| will be called.
- static bool IsReadyToComplete(
- content::DownloadItem* download,
- const base::Closure& complete_callback);
+ static bool IsReadyToComplete(content::DownloadItem* download,
+ const base::Closure& complete_callback);
// Returns the count of bytes confirmed as uploaded so far for |download|.
static int64 GetUploadedBytes(const content::DownloadItem* download);
@@ -82,12 +82,6 @@ class DriveDownloadObserver : public content::DownloadManager::Observer,
// progress is unknown, returns -1.
static int PercentComplete(const content::DownloadItem* download);
- // Create a temporary file |drive_tmp_download_path| in
- // |drive_tmp_download_dir|. Must be called on a thread that allows file
- // operations.
- static void GetDriveTempDownloadPath(const FilePath& drive_tmp_download_dir,
- FilePath* drive_tmp_download_path);
-
private:
// Structure containing arguments required to process uploading.
// For internal use, to avoid passing all of the parameters every time
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_download_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698