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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #if defined(OS_ANDROID) | 49 #if defined(OS_ANDROID) |
50 GCMProfileService( | 50 GCMProfileService( |
51 base::FilePath path, | 51 base::FilePath path, |
52 scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); | 52 scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); |
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 const std::string& product_category_for_subtypes, |
59 std::unique_ptr<ProfileIdentityProvider> identity_provider, | 60 std::unique_ptr<ProfileIdentityProvider> identity_provider, |
60 std::unique_ptr<GCMClientFactory> gcm_client_factory, | 61 std::unique_ptr<GCMClientFactory> gcm_client_factory, |
61 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, | 62 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, |
62 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, | 63 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, |
63 scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); | 64 scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); |
64 #endif | 65 #endif |
65 ~GCMProfileService() override; | 66 ~GCMProfileService() override; |
66 | 67 |
67 // Returns whether GCM is enabled. | 68 // Returns whether GCM is enabled. |
68 static bool IsGCMEnabled(PrefService* prefs); | 69 static bool IsGCMEnabled(PrefService* prefs); |
(...skipping 22 matching lines...) Expand all Loading... |
91 std::unique_ptr<IdentityObserver> identity_observer_; | 92 std::unique_ptr<IdentityObserver> identity_observer_; |
92 #endif | 93 #endif |
93 | 94 |
94 DISALLOW_COPY_AND_ASSIGN(GCMProfileService); | 95 DISALLOW_COPY_AND_ASSIGN(GCMProfileService); |
95 }; | 96 }; |
96 | 97 |
97 } // namespace gcm | 98 } // namespace gcm |
98 | 99 |
99 #endif // COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ | 100 #endif // COMPONENTS_GCM_DRIVER_GCM_PROFILE_SERVICE_H_ |
100 | 101 |
OLD | NEW |