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 #include "components/precache/core/precache_database.h" | 5 #include "components/precache/core/precache_database.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 void PrecacheDatabase::SaveUnfinishedWork( | 423 void PrecacheDatabase::SaveUnfinishedWork( |
424 std::unique_ptr<PrecacheUnfinishedWork> unfinished_work) { | 424 std::unique_ptr<PrecacheUnfinishedWork> unfinished_work) { |
425 precache_session_table_.SaveUnfinishedWork( | 425 precache_session_table_.SaveUnfinishedWork( |
426 std::move(unfinished_work)); | 426 std::move(unfinished_work)); |
427 } | 427 } |
428 | 428 |
429 void PrecacheDatabase::DeleteUnfinishedWork() { | 429 void PrecacheDatabase::DeleteUnfinishedWork() { |
430 precache_session_table_.DeleteUnfinishedWork(); | 430 precache_session_table_.DeleteUnfinishedWork(); |
431 } | 431 } |
432 | 432 |
| 433 void PrecacheDatabase::SaveQuota(const PrecacheQuota& quota) { |
| 434 precache_session_table_.SaveQuota(quota); |
| 435 } |
| 436 |
| 437 PrecacheQuota PrecacheDatabase::GetQuota() { |
| 438 return precache_session_table_.GetQuota(); |
| 439 } |
| 440 |
433 base::WeakPtr<PrecacheDatabase> PrecacheDatabase::GetWeakPtr() { | 441 base::WeakPtr<PrecacheDatabase> PrecacheDatabase::GetWeakPtr() { |
434 return weak_factory_.GetWeakPtr(); | 442 return weak_factory_.GetWeakPtr(); |
435 } | 443 } |
436 | 444 |
437 } // namespace precache | 445 } // namespace precache |
OLD | NEW |