| 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 #ifndef CHROME_BROWSER_EXTENSIONS_SETTINGS_VALUE_STORE_CACHE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_VALUE_STORE_CACHE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_VALUE_STORE_CACHE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_VALUE_STORE_CACHE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 | 12 |
| 13 class ValueStore; | 13 class ValueStore; |
| 14 | 14 |
| 15 namespace extensions { | 15 namespace extensions { |
| 16 | 16 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 47 virtual void RunWithValueStoreForExtension( | 47 virtual void RunWithValueStoreForExtension( |
| 48 const StorageCallback& callback, | 48 const StorageCallback& callback, |
| 49 scoped_refptr<const Extension> extension) = 0; | 49 scoped_refptr<const Extension> extension) = 0; |
| 50 | 50 |
| 51 // Requests the cache to delete any storage used by |extension_id|. | 51 // Requests the cache to delete any storage used by |extension_id|. |
| 52 virtual void DeleteStorageSoon(const std::string& extension_id) = 0; | 52 virtual void DeleteStorageSoon(const std::string& extension_id) = 0; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace extensions | 55 } // namespace extensions |
| 56 | 56 |
| 57 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_VALUE_STORE_CACHE_H_ | 57 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_VALUE_STORE_CACHE_H_ |
| OLD | NEW |