| 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/local_value_store_cache.h" | 5 #include "extensions/browser/api/storage/local_value_store_cache.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <limits> | 9 #include <limits> |
| 8 | 10 |
| 9 #include "base/bind.h" | 11 #include "base/bind.h" |
| 10 #include "base/callback.h" | 12 #include "base/callback.h" |
| 11 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 12 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 13 #include "extensions/browser/api/storage/settings_storage_factory.h" | 15 #include "extensions/browser/api/storage/settings_storage_factory.h" |
| 14 #include "extensions/browser/api/storage/settings_storage_quota_enforcer.h" | 16 #include "extensions/browser/api/storage/settings_storage_quota_enforcer.h" |
| 15 #include "extensions/browser/api/storage/weak_unlimited_settings_storage.h" | 17 #include "extensions/browser/api/storage/weak_unlimited_settings_storage.h" |
| 16 #include "extensions/browser/value_store/value_store.h" | 18 #include "extensions/browser/value_store/value_store.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 linked_ptr<SettingsStorageQuotaEnforcer> storage( | 90 linked_ptr<SettingsStorageQuotaEnforcer> storage( |
| 89 new SettingsStorageQuotaEnforcer( | 91 new SettingsStorageQuotaEnforcer( |
| 90 quota_, storage_factory_->Create(file_path, extension->id()))); | 92 quota_, storage_factory_->Create(file_path, extension->id()))); |
| 91 DCHECK(storage.get()); | 93 DCHECK(storage.get()); |
| 92 | 94 |
| 93 storage_map_[extension->id()] = storage; | 95 storage_map_[extension->id()] = storage; |
| 94 return storage.get(); | 96 return storage.get(); |
| 95 } | 97 } |
| 96 | 98 |
| 97 } // namespace extensions | 99 } // namespace extensions |
| OLD | NEW |