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

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

Issue 2887933002: Remove usage of SequencedWorkerPool::GetNamedSequenceToken from ChromeDownloadManagerDelegate. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/download_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DOWNLOAD_HANDLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Gets the target drive path from external data in |download|. 64 // Gets the target drive path from external data in |download|.
65 base::FilePath GetTargetPath(const content::DownloadItem* download); 65 base::FilePath GetTargetPath(const content::DownloadItem* download);
66 66
67 // Gets the downloaded drive cache file path from external data in |download|. 67 // Gets the downloaded drive cache file path from external data in |download|.
68 base::FilePath GetCacheFilePath(const content::DownloadItem* download); 68 base::FilePath GetCacheFilePath(const content::DownloadItem* download);
69 69
70 // Checks if there is a Drive upload associated with |download| 70 // Checks if there is a Drive upload associated with |download|
71 bool IsDriveDownload(const content::DownloadItem* download); 71 bool IsDriveDownload(const content::DownloadItem* download);
72 72
73 // Checks a file corresponding to the download item exists in Drive. 73 // Checks a file corresponding to the download item exists in Drive.
74 void CheckForFileExistence( 74 void CheckForFileExistence(const content::DownloadItem* download,
75 const content::DownloadItem* download, 75 content::CheckForFileExistenceCallback callback);
76 const content::CheckForFileExistenceCallback& callback);
77 76
78 // Calculates request space for |downloads|. 77 // Calculates request space for |downloads|.
79 int64_t CalculateRequestSpace( 78 int64_t CalculateRequestSpace(
80 const content::DownloadManager::DownloadVector& downloads); 79 const content::DownloadManager::DownloadVector& downloads);
81 80
82 // Checks available storage space and free disk space if necessary. Actual 81 // Checks available storage space and free disk space if necessary. Actual
83 // execution is delayed and rate limited. 82 // execution is delayed and rate limited.
84 void FreeDiskSpaceIfNeeded(); 83 void FreeDiskSpaceIfNeeded();
85 84
86 // Checks available storage space and free disk space if necessary. This is 85 // Checks available storage space and free disk space if necessary. This is
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Note: This should remain the last member so it'll be destroyed and 136 // Note: This should remain the last member so it'll be destroyed and
138 // invalidate its weak pointers before any other members are destroyed. 137 // invalidate its weak pointers before any other members are destroyed.
139 base::WeakPtrFactory<DownloadHandler> weak_ptr_factory_; 138 base::WeakPtrFactory<DownloadHandler> weak_ptr_factory_;
140 139
141 DISALLOW_COPY_AND_ASSIGN(DownloadHandler); 140 DISALLOW_COPY_AND_ASSIGN(DownloadHandler);
142 }; 141 };
143 142
144 } // namespace drive 143 } // namespace drive
145 144
146 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_ 145 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/download_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698