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_WEAK_UNLIMITED_SETTINGS_STORAGE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_WEAK_UNLIMITED_SETTINGS_STORAGE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_WEAK_UNLIMITED_SETTINGS_STORAGE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_WEAK_UNLIMITED_SETTINGS_STORAGE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/value_store/value_store.h" | 9 #include "chrome/browser/value_store/value_store.h" |
10 | 10 |
11 namespace extensions { | 11 namespace extensions { |
12 | 12 |
13 // A ValueStore decorator which makes calls through |Set| ignore quota. | 13 // A ValueStore decorator which makes calls through |Set| ignore quota. |
14 // "Weak" because ownership of the delegate isn't taken; this is designed to be | 14 // "Weak" because ownership of the delegate isn't taken; this is designed to be |
15 // temporarily attached to storage areas. | 15 // temporarily attached to storage areas. |
16 class WeakUnlimitedSettingsStorage : public ValueStore { | 16 class WeakUnlimitedSettingsStorage : public ValueStore { |
(...skipping 22 matching lines...) Expand all Loading... |
39 | 39 |
40 private: | 40 private: |
41 // The delegate storage area, NOT OWNED. | 41 // The delegate storage area, NOT OWNED. |
42 ValueStore* const delegate_; | 42 ValueStore* const delegate_; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(WeakUnlimitedSettingsStorage); | 44 DISALLOW_COPY_AND_ASSIGN(WeakUnlimitedSettingsStorage); |
45 }; | 45 }; |
46 | 46 |
47 } // namespace extensions | 47 } // namespace extensions |
48 | 48 |
49 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_WEAK_UNLIMITED_SETTINGS_STORAGE_H_ | 49 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_WEAK_UNLIMITED_SETTINGS_STORAGE
_H_ |
OLD | NEW |