| 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 QuotaStatusCode status, | 442 QuotaStatusCode status, |
| 443 int64_t quota_unused); | 443 int64_t quota_unused); |
| 444 void DidInitializeTemporaryOriginsInfo(bool success); | 444 void DidInitializeTemporaryOriginsInfo(bool success); |
| 445 void DidGetAvailableSpace(int64_t space); | 445 void DidGetAvailableSpace(int64_t space); |
| 446 void DidDatabaseWork(bool success); | 446 void DidDatabaseWork(bool success); |
| 447 | 447 |
| 448 void DeleteOnCorrectThread() const; | 448 void DeleteOnCorrectThread() const; |
| 449 | 449 |
| 450 void PostTaskAndReplyWithResultForDBThread( | 450 void PostTaskAndReplyWithResultForDBThread( |
| 451 const tracked_objects::Location& from_here, | 451 const tracked_objects::Location& from_here, |
| 452 const base::Callback<bool(QuotaDatabase*)>& task, | 452 base::Callback<bool(QuotaDatabase*)> task, |
| 453 const base::Callback<void(bool)>& reply); | 453 base::Callback<void(bool)> reply); |
| 454 | 454 |
| 455 static int64_t CallGetAmountOfFreeDiskSpace( | 455 static int64_t CallGetAmountOfFreeDiskSpace( |
| 456 GetVolumeInfoFn get_vol_info_fn, | 456 GetVolumeInfoFn get_vol_info_fn, |
| 457 const base::FilePath& profile_path); | 457 const base::FilePath& profile_path); |
| 458 static bool GetVolumeInfo(const base::FilePath& path, | 458 static bool GetVolumeInfo(const base::FilePath& path, |
| 459 uint64_t* available_space, | 459 uint64_t* available_space, |
| 460 uint64_t* total_size); | 460 uint64_t* total_size); |
| 461 | 461 |
| 462 const bool is_incognito_; | 462 const bool is_incognito_; |
| 463 const base::FilePath profile_path_; | 463 const base::FilePath profile_path_; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 | 516 |
| 517 struct QuotaManagerDeleter { | 517 struct QuotaManagerDeleter { |
| 518 static void Destruct(const QuotaManager* manager) { | 518 static void Destruct(const QuotaManager* manager) { |
| 519 manager->DeleteOnCorrectThread(); | 519 manager->DeleteOnCorrectThread(); |
| 520 } | 520 } |
| 521 }; | 521 }; |
| 522 | 522 |
| 523 } // namespace storage | 523 } // namespace storage |
| 524 | 524 |
| 525 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ | 525 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ |
| OLD | NEW |