OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_PROFILE_SETTINGS_P ROVIDER_H_ | |
6 #define CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_PROFILE_SETTINGS_P ROVIDER_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "base/macros.h" | |
10 #include "base/prefs/pref_change_registrar.h" | |
11 #include "chrome/browser/invalidation/ticl_invalidation_service_settings_provide r.h" | |
12 | |
13 class Profile; | |
14 | |
15 namespace invalidation { | |
16 | |
17 // A specialization of TiclInvalidationServiceSettingsProvider that reads | |
18 // settings from user prefs. | |
19 class TiclInvalidationServiceProfileSettingsProvider | |
20 : public TiclInvalidationServiceSettingsProvider { | |
21 public: | |
22 explicit TiclInvalidationServiceProfileSettingsProvider(Profile* profile); | |
23 virtual ~TiclInvalidationServiceProfileSettingsProvider(); | |
24 | |
25 // TiclInvalidationServiceSettingsProvider: | |
26 virtual bool UseGCMChannel() const OVERRIDE; | |
27 | |
28 private: | |
29 PrefChangeRegistrar registrar_; | |
30 Profile* profile_; | |
dcheng
2014/04/24 18:26:54
Nit: Profile* const.
bartfab (slow)
2014/04/24 19:14:48
This gets fed to gcm::GCMProfileService::GetGCMEna
dcheng
2014/04/24 21:02:18
T* const, not const T*. The former simply means th
bartfab (slow)
2014/04/25 08:51:27
Done.
| |
31 | |
32 DISALLOW_COPY_AND_ASSIGN(TiclInvalidationServiceProfileSettingsProvider); | |
33 }; | |
34 | |
35 } // namespace invalidation | |
36 | |
37 #endif // CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_PROFILE_SETTING S_PROVIDER_H_ | |
OLD | NEW |