| 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 void ContinueIncognitoGetStorageCapacity(const QuotaSettings& settings); | 394 void ContinueIncognitoGetStorageCapacity(const QuotaSettings& settings); |
| 395 void DidGetStorageCapacity( | 395 void DidGetStorageCapacity( |
| 396 const std::tuple<int64_t, int64_t>& total_and_available); | 396 const std::tuple<int64_t, int64_t>& total_and_available); |
| 397 | 397 |
| 398 void DidDatabaseWork(bool success); | 398 void DidDatabaseWork(bool success); |
| 399 | 399 |
| 400 void DeleteOnCorrectThread() const; | 400 void DeleteOnCorrectThread() const; |
| 401 | 401 |
| 402 void PostTaskAndReplyWithResultForDBThread( | 402 void PostTaskAndReplyWithResultForDBThread( |
| 403 const tracked_objects::Location& from_here, | 403 const tracked_objects::Location& from_here, |
| 404 const base::Callback<bool(QuotaDatabase*)>& task, | 404 base::Callback<bool(QuotaDatabase*)> task, |
| 405 const base::Callback<void(bool)>& reply); | 405 base::Callback<void(bool)> reply); |
| 406 | 406 |
| 407 static std::tuple<int64_t, int64_t> CallGetVolumeInfo( | 407 static std::tuple<int64_t, int64_t> CallGetVolumeInfo( |
| 408 GetVolumeInfoFn get_volume_info_fn, | 408 GetVolumeInfoFn get_volume_info_fn, |
| 409 const base::FilePath& path); | 409 const base::FilePath& path); |
| 410 static std::tuple<int64_t, int64_t> GetVolumeInfo(const base::FilePath& path); | 410 static std::tuple<int64_t, int64_t> GetVolumeInfo(const base::FilePath& path); |
| 411 | 411 |
| 412 const bool is_incognito_; | 412 const bool is_incognito_; |
| 413 const base::FilePath profile_path_; | 413 const base::FilePath profile_path_; |
| 414 | 414 |
| 415 scoped_refptr<QuotaManagerProxy> proxy_; | 415 scoped_refptr<QuotaManagerProxy> proxy_; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 | 467 |
| 468 struct QuotaManagerDeleter { | 468 struct QuotaManagerDeleter { |
| 469 static void Destruct(const QuotaManager* manager) { | 469 static void Destruct(const QuotaManager* manager) { |
| 470 manager->DeleteOnCorrectThread(); | 470 manager->DeleteOnCorrectThread(); |
| 471 } | 471 } |
| 472 }; | 472 }; |
| 473 | 473 |
| 474 } // namespace storage | 474 } // namespace storage |
| 475 | 475 |
| 476 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ | 476 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ |
| OLD | NEW |