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 18 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 |