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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #else | 53 #else |
54 GCMProfileService( | 54 GCMProfileService( |
55 PrefService* prefs, | 55 PrefService* prefs, |
56 base::FilePath path, | 56 base::FilePath path, |
57 net::URLRequestContextGetter* request_context, | 57 net::URLRequestContextGetter* request_context, |
58 version_info::Channel channel, | 58 version_info::Channel channel, |
59 scoped_ptr<ProfileIdentityProvider> identity_provider, | 59 scoped_ptr<ProfileIdentityProvider> identity_provider, |
60 scoped_ptr<GCMClientFactory> gcm_client_factory, | 60 scoped_ptr<GCMClientFactory> gcm_client_factory, |
61 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, | 61 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, |
62 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, | 62 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, |
63 scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); | 63 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); |
64 #endif | 64 #endif |
65 ~GCMProfileService() override; | 65 ~GCMProfileService() override; |
66 | 66 |
67 // Returns whether GCM is enabled. | 67 // Returns whether GCM is enabled. |
68 static bool IsGCMEnabled(PrefService* prefs); | 68 static bool IsGCMEnabled(PrefService* prefs); |
69 | 69 |
70 // KeyedService: | 70 // KeyedService: |
71 void Shutdown() override; | 71 void Shutdown() override; |
72 | 72 |
73 // For testing purpose. | 73 // For testing purpose. |
(...skipping 17 matching lines...) Expand all Loading... |
91 scoped_ptr<IdentityObserver> identity_observer_; | 91 scoped_ptr<IdentityObserver> identity_observer_; |
92 #endif | 92 #endif |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(GCMProfileService); | 94 DISALLOW_COPY_AND_ASSIGN(GCMProfileService); |
95 }; | 95 }; |
96 | 96 |
97 } // namespace gcm | 97 } // namespace gcm |
98 | 98 |
99 #endif // COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ | 99 #endif // COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ |
100 | 100 |
OLD | NEW |