| 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_LOCAL_STORAGE_BACKEND_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_STORAGE_LOCAL_STORAGE_BACKEND_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_LOCAL_STORAGE_BACKEND_H_ | 6 #define EXTENSIONS_BROWSER_API_STORAGE_LOCAL_STORAGE_BACKEND_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/memory/linked_ptr.h" | 11 #include "base/memory/linked_ptr.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "chrome/browser/extensions/api/storage/settings_backend.h" | 13 #include "extensions/browser/api/storage/settings_backend.h" |
| 14 #include "chrome/browser/extensions/api/storage/settings_storage_quota_enforcer.
h" | 14 #include "extensions/browser/api/storage/settings_storage_quota_enforcer.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class FilePath; | 17 class FilePath; |
| 18 } | 18 } |
| 19 | 19 |
| 20 class ValueStore; | 20 class ValueStore; |
| 21 | 21 |
| 22 namespace extensions { | 22 namespace extensions { |
| 23 class SettingStorageFactory; | 23 class SettingStorageFactory; |
| 24 | 24 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 37 private: | 37 private: |
| 38 typedef std::map<std::string, linked_ptr<ValueStore> > StorageMap; | 38 typedef std::map<std::string, linked_ptr<ValueStore> > StorageMap; |
| 39 | 39 |
| 40 StorageMap storage_map_; | 40 StorageMap storage_map_; |
| 41 | 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(LocalStorageBackend); | 42 DISALLOW_COPY_AND_ASSIGN(LocalStorageBackend); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace extensions | 45 } // namespace extensions |
| 46 | 46 |
| 47 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_LOCAL_STORAGE_BACKEND_H_ | 47 #endif // EXTENSIONS_BROWSER_API_STORAGE_LOCAL_STORAGE_BACKEND_H_ |
| OLD | NEW |