| 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_PREFS_TESTING_PREF_STORE_H_ | 5 #ifndef CHROME_BROWSER_PREFS_TESTING_PREF_STORE_H_ |
| 6 #define CHROME_BROWSER_PREFS_TESTING_PREF_STORE_H_ | 6 #define CHROME_BROWSER_PREFS_TESTING_PREF_STORE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 protected: | 67 protected: |
| 68 virtual ~TestingPrefStore(); | 68 virtual ~TestingPrefStore(); |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 // Stores the preference values. | 71 // Stores the preference values. |
| 72 PrefValueMap prefs_; | 72 PrefValueMap prefs_; |
| 73 | 73 |
| 74 // Flag that indicates if the PrefStore is read-only | 74 // Flag that indicates if the PrefStore is read-only |
| 75 bool read_only_; | 75 bool read_only_; |
| 76 | 76 |
| 77 // Flag that indicates if the method WritePrefs was called. | |
| 78 bool prefs_written_; | |
| 79 | |
| 80 // Whether initialization has been completed. | 77 // Whether initialization has been completed. |
| 81 bool init_complete_; | 78 bool init_complete_; |
| 82 | 79 |
| 83 ObserverList<PrefStore::Observer, true> observers_; | 80 ObserverList<PrefStore::Observer, true> observers_; |
| 84 | 81 |
| 85 DISALLOW_COPY_AND_ASSIGN(TestingPrefStore); | 82 DISALLOW_COPY_AND_ASSIGN(TestingPrefStore); |
| 86 }; | 83 }; |
| 87 | 84 |
| 88 #endif // CHROME_BROWSER_PREFS_TESTING_PREF_STORE_H_ | 85 #endif // CHROME_BROWSER_PREFS_TESTING_PREF_STORE_H_ |
| OLD | NEW |