| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_USER_PREFS_USER_PREFS_H_ | 5 #ifndef COMPONENTS_USER_PREFS_USER_PREFS_H_ |
| 6 #define COMPONENTS_USER_PREFS_USER_PREFS_H_ | 6 #define COMPONENTS_USER_PREFS_USER_PREFS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
| 9 #include "base/supports_user_data.h" | 9 #include "base/supports_user_data.h" |
| 10 #include "components/user_prefs/user_prefs_export.h" | 10 #include "components/user_prefs/user_prefs_export.h" |
| 11 | 11 |
| 12 class PrefService; | 12 class PrefService; |
| 13 | 13 |
| 14 namespace user_prefs { | 14 namespace user_prefs { |
| 15 | 15 |
| 16 // Components may use preferences associated with a given user. These hang off | 16 // Components may use preferences associated with a given user. These hang off |
| 17 // of base::SupportsUserData and can be retrieved using UserPrefs::Get(). | 17 // of base::SupportsUserData and can be retrieved using UserPrefs::Get(). |
| 18 // | 18 // |
| (...skipping 14 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // Non-owning; owned by embedder. | 34 // Non-owning; owned by embedder. |
| 35 PrefService* prefs_; | 35 PrefService* prefs_; |
| 36 | 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(UserPrefs); | 37 DISALLOW_COPY_AND_ASSIGN(UserPrefs); |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace user_prefs | 40 } // namespace user_prefs |
| 41 | 41 |
| 42 #endif // COMPONENTS_USER_PREFS_USER_PREFS_H_ | 42 #endif // COMPONENTS_USER_PREFS_USER_PREFS_H_ |
| OLD | NEW |