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

Side by Side Diff: storage/browser/quota/quota_manager.h

Issue 1782053004: Change how the quota system computes the total poolsize for temporary storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698