OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ | 5 #ifndef STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ |
6 #define STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ | 6 #define STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
443 void DidGetAvailableSpace(int64_t space); | 443 void DidGetAvailableSpace(int64_t space); |
444 void DidDatabaseWork(bool success); | 444 void DidDatabaseWork(bool success); |
445 | 445 |
446 void DeleteOnCorrectThread() const; | 446 void DeleteOnCorrectThread() const; |
447 | 447 |
448 void PostTaskAndReplyWithResultForDBThread( | 448 void PostTaskAndReplyWithResultForDBThread( |
449 const tracked_objects::Location& from_here, | 449 const tracked_objects::Location& from_here, |
450 const base::Callback<bool(QuotaDatabase*)>& task, | 450 const base::Callback<bool(QuotaDatabase*)>& task, |
451 const base::Callback<void(bool)>& reply); | 451 const base::Callback<void(bool)>& reply); |
452 | 452 |
453 static void CalculateTemporaryPoolSize( | |
454 GetVolumeInfoFn get_vol_info_fn, | |
455 const base::FilePath& profile_path, | |
456 const QuotaCallback& callback, | |
457 const scoped_refptr<base::TaskRunner>& reply_runner); | |
jsbell
2016/03/23 18:08:29
Passing in a reply task runner seems odd. I'd expe
michaeln
2016/04/07 00:32:34
Done.
| |
453 static int64_t CallGetAmountOfFreeDiskSpace( | 458 static int64_t CallGetAmountOfFreeDiskSpace( |
454 GetVolumeInfoFn get_vol_info_fn, | 459 GetVolumeInfoFn get_vol_info_fn, |
455 const base::FilePath& profile_path); | 460 const base::FilePath& profile_path); |
456 static bool GetVolumeInfo(const base::FilePath& path, | 461 static bool GetVolumeInfo(const base::FilePath& path, |
457 uint64_t* available_space, | 462 uint64_t* available_space, |
458 uint64_t* total_size); | 463 uint64_t* total_size); |
459 | 464 |
460 const bool is_incognito_; | 465 const bool is_incognito_; |
461 const base::FilePath profile_path_; | 466 const base::FilePath profile_path_; |
462 | 467 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
514 | 519 |
515 struct QuotaManagerDeleter { | 520 struct QuotaManagerDeleter { |
516 static void Destruct(const QuotaManager* manager) { | 521 static void Destruct(const QuotaManager* manager) { |
517 manager->DeleteOnCorrectThread(); | 522 manager->DeleteOnCorrectThread(); |
518 } | 523 } |
519 }; | 524 }; |
520 | 525 |
521 } // namespace storage | 526 } // namespace storage |
522 | 527 |
523 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ | 528 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ |
OLD | NEW |