OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/extensions/api/storage/storage_api.h" | 5 #include "chrome/browser/extensions/api/storage/storage_api.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/extensions/api/storage/settings_frontend.h" | |
14 #include "chrome/common/extensions/api/storage.h" | 13 #include "chrome/common/extensions/api/storage.h" |
15 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "extensions/browser/api/storage/settings_frontend.h" |
16 #include "extensions/browser/quota_service.h" | 16 #include "extensions/browser/quota_service.h" |
17 | 17 |
18 namespace extensions { | 18 namespace extensions { |
19 | 19 |
20 using content::BrowserThread; | 20 using content::BrowserThread; |
21 | 21 |
22 // SettingsFunction | 22 // SettingsFunction |
23 | 23 |
24 SettingsFunction::SettingsFunction() | 24 SettingsFunction::SettingsFunction() |
25 : settings_namespace_(settings_namespace::INVALID), | 25 : settings_namespace_(settings_namespace::INVALID), |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 bool StorageStorageAreaClearFunction::RunWithStorage(ValueStore* storage) { | 295 bool StorageStorageAreaClearFunction::RunWithStorage(ValueStore* storage) { |
296 return UseWriteResult(storage->Clear(), storage); | 296 return UseWriteResult(storage->Clear(), storage); |
297 } | 297 } |
298 | 298 |
299 void StorageStorageAreaClearFunction::GetQuotaLimitHeuristics( | 299 void StorageStorageAreaClearFunction::GetQuotaLimitHeuristics( |
300 QuotaLimitHeuristics* heuristics) const { | 300 QuotaLimitHeuristics* heuristics) const { |
301 GetModificationQuotaLimitHeuristics(heuristics); | 301 GetModificationQuotaLimitHeuristics(heuristics); |
302 } | 302 } |
303 | 303 |
304 } // namespace extensions | 304 } // namespace extensions |
OLD | NEW |