| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/api/storage/storage_api.h" | 5 #include "extensions/browser/api/storage/storage_api.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <string> | 9 #include <string> |
| 8 #include <utility> | 10 #include <utility> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/bind.h" | 13 #include "base/bind.h" |
| 12 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 13 #include "base/values.h" | 15 #include "base/values.h" |
| 14 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
| 15 #include "extensions/browser/api/storage/storage_frontend.h" | 17 #include "extensions/browser/api/storage/storage_frontend.h" |
| 16 #include "extensions/browser/quota_service.h" | 18 #include "extensions/browser/quota_service.h" |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 StorageStorageAreaClearFunction::RunWithStorage(ValueStore* storage) { | 266 StorageStorageAreaClearFunction::RunWithStorage(ValueStore* storage) { |
| 265 return UseWriteResult(storage->Clear()); | 267 return UseWriteResult(storage->Clear()); |
| 266 } | 268 } |
| 267 | 269 |
| 268 void StorageStorageAreaClearFunction::GetQuotaLimitHeuristics( | 270 void StorageStorageAreaClearFunction::GetQuotaLimitHeuristics( |
| 269 QuotaLimitHeuristics* heuristics) const { | 271 QuotaLimitHeuristics* heuristics) const { |
| 270 GetModificationQuotaLimitHeuristics(heuristics); | 272 GetModificationQuotaLimitHeuristics(heuristics); |
| 271 } | 273 } |
| 272 | 274 |
| 273 } // namespace extensions | 275 } // namespace extensions |
| OLD | NEW |