OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT_RO
UTER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT_RO
UTER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT_RO
UTER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT_RO
UTER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/chromeos/settings/cros_settings.h" | 9 #include "chrome/browser/chromeos/settings/cros_settings.h" |
10 #include "chrome/browser/extensions/api/settings_private/prefs_util.h" | 10 #include "chrome/browser/extensions/api/settings_private/prefs_util.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 PrefChangeRegistrar* FindRegistrarForPref(const std::string& pref_name); | 58 PrefChangeRegistrar* FindRegistrarForPref(const std::string& pref_name); |
59 | 59 |
60 typedef std::map<std::string, | 60 typedef std::map<std::string, |
61 linked_ptr<chromeos::CrosSettings::ObserverSubscription>> | 61 linked_ptr<chromeos::CrosSettings::ObserverSubscription>> |
62 SubscriptionMap; | 62 SubscriptionMap; |
63 SubscriptionMap cros_settings_subscription_map_; | 63 SubscriptionMap cros_settings_subscription_map_; |
64 | 64 |
65 content::BrowserContext* context_; | 65 content::BrowserContext* context_; |
66 bool listening_; | 66 bool listening_; |
67 | 67 |
68 scoped_ptr<PrefsUtil> prefs_util_; | 68 std::unique_ptr<PrefsUtil> prefs_util_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateEventRouter); | 70 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateEventRouter); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace extensions | 73 } // namespace extensions |
74 | 74 |
75 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT
_ROUTER_H_ | 75 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_EVENT
_ROUTER_H_ |
OLD | NEW |