| 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 "chrome/browser/extensions/api/storage/local_value_store_cache.h" | 5 #include "extensions/browser/api/storage/local_value_store_cache.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "chrome/browser/extensions/api/storage/local_storage_backend.h" | |
| 13 #include "chrome/browser/extensions/api/storage/settings_storage_factory.h" | |
| 14 #include "chrome/browser/extensions/api/storage/settings_storage_quota_enforcer.
h" | |
| 15 #include "chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.
h" | |
| 16 #include "chrome/common/extensions/api/storage.h" | 12 #include "chrome/common/extensions/api/storage.h" |
| 17 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 14 #include "extensions/browser/api/storage/local_storage_backend.h" |
| 15 #include "extensions/browser/api/storage/settings_storage_factory.h" |
| 16 #include "extensions/browser/api/storage/settings_storage_quota_enforcer.h" |
| 17 #include "extensions/browser/api/storage/weak_unlimited_settings_storage.h" |
| 18 #include "extensions/common/constants.h" | 18 #include "extensions/common/constants.h" |
| 19 #include "extensions/common/extension.h" | 19 #include "extensions/common/extension.h" |
| 20 #include "extensions/common/permissions/api_permission.h" | 20 #include "extensions/common/permissions/api_permission.h" |
| 21 | 21 |
| 22 using content::BrowserThread; | 22 using content::BrowserThread; |
| 23 | 23 |
| 24 namespace extensions { | 24 namespace extensions { |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 profile_path.AppendASCII(kLocalAppSettingsDirectoryName), | 95 profile_path.AppendASCII(kLocalAppSettingsDirectoryName), |
| 96 GetLocalQuotaLimits())); | 96 GetLocalQuotaLimits())); |
| 97 extension_backend_.reset(new LocalStorageBackend( | 97 extension_backend_.reset(new LocalStorageBackend( |
| 98 factory, | 98 factory, |
| 99 profile_path.AppendASCII(kLocalExtensionSettingsDirectoryName), | 99 profile_path.AppendASCII(kLocalExtensionSettingsDirectoryName), |
| 100 GetLocalQuotaLimits())); | 100 GetLocalQuotaLimits())); |
| 101 initialized_ = true; | 101 initialized_ = true; |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace extensions | 104 } // namespace extensions |
| OLD | NEW |