OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_SERVICE_SERVICE_PROCESS_PREFS_H_ | 5 #ifndef CHROME_SERVICE_SERVICE_PROCESS_PREFS_H_ |
6 #define CHROME_SERVICE_SERVICE_PROCESS_PREFS_H_ | 6 #define CHROME_SERVICE_SERVICE_PROCESS_PREFS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 // Get a boolean preference for |key| and store it in |result|. | 34 // Get a boolean preference for |key| and store it in |result|. |
35 void GetBoolean(const std::string& key, bool* result); | 35 void GetBoolean(const std::string& key, bool* result); |
36 | 36 |
37 // Set a boolean |value| for |key|. | 37 // Set a boolean |value| for |key|. |
38 void SetBoolean(const std::string& key, bool value); | 38 void SetBoolean(const std::string& key, bool value); |
39 | 39 |
40 // Get a dictionary preference for |key| and store it in |result|. | 40 // Get a dictionary preference for |key| and store it in |result|. |
41 void GetDictionary(const std::string& key, DictionaryValue** result); | 41 void GetDictionary(const std::string& key, DictionaryValue** result); |
42 | 42 |
43 private: | 43 private: |
44 JsonPrefStore prefs_; | 44 scoped_refptr<JsonPrefStore> prefs_; |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(ServiceProcessPrefs); | 46 DISALLOW_COPY_AND_ASSIGN(ServiceProcessPrefs); |
47 }; | 47 }; |
48 | 48 |
49 #endif // CHROME_SERVICE_SERVICE_PROCESS_PREFS_H_ | 49 #endif // CHROME_SERVICE_SERVICE_PROCESS_PREFS_H_ |
OLD | NEW |