OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ |
6 #define COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ | 6 #define COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 #else | 52 #else |
53 GCMProfileService( | 53 GCMProfileService( |
54 PrefService* prefs, | 54 PrefService* prefs, |
55 base::FilePath path, | 55 base::FilePath path, |
56 net::URLRequestContextGetter* request_context, | 56 net::URLRequestContextGetter* request_context, |
57 version_info::Channel channel, | 57 version_info::Channel channel, |
58 scoped_ptr<ProfileIdentityProvider> identity_provider, | 58 scoped_ptr<ProfileIdentityProvider> identity_provider, |
59 scoped_ptr<GCMClientFactory> gcm_client_factory, | 59 scoped_ptr<GCMClientFactory> gcm_client_factory, |
60 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, | 60 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, |
61 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, | 61 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, |
62 scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); | 62 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); |
63 #endif | 63 #endif |
64 ~GCMProfileService() override; | 64 ~GCMProfileService() override; |
65 | 65 |
66 // Returns whether GCM is enabled. | 66 // Returns whether GCM is enabled. |
67 static bool IsGCMEnabled(PrefService* prefs); | 67 static bool IsGCMEnabled(PrefService* prefs); |
68 | 68 |
69 // KeyedService: | 69 // KeyedService: |
70 void Shutdown() override; | 70 void Shutdown() override; |
71 | 71 |
72 // For testing purpose. | 72 // For testing purpose. |
(...skipping 17 matching lines...) Expand all Loading... |
90 scoped_ptr<IdentityObserver> identity_observer_; | 90 scoped_ptr<IdentityObserver> identity_observer_; |
91 #endif | 91 #endif |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(GCMProfileService); | 93 DISALLOW_COPY_AND_ASSIGN(GCMProfileService); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace gcm | 96 } // namespace gcm |
97 | 97 |
98 #endif // COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ | 98 #endif // COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ |
99 | 99 |
OLD | NEW |