OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_GCM_DESKTOP_UTILS_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_GCM_DESKTOP_UTILS_H_ |
6 #define COMPONENTS_GCM_DRIVER_GCM_GCM_DESKTOP_UTILS_H_ | 6 #define COMPONENTS_GCM_DRIVER_GCM_GCM_DESKTOP_UTILS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
12 #include "components/version_info/version_info.h" | 12 #include "components/version_info/version_info.h" |
13 | 13 |
14 class PrefService; | 14 class PrefService; |
15 namespace base { | 15 namespace base { |
16 class FilePath; | 16 class FilePath; |
17 } | 17 } |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 class URLRequestContextGetter; | 20 class URLRequestContextGetter; |
21 } | 21 } |
22 | 22 |
| 23 namespace user_prefs { |
| 24 class PrefRegistrySyncable; |
| 25 } |
| 26 |
23 namespace gcm { | 27 namespace gcm { |
24 | 28 |
25 class GCMDriver; | 29 class GCMDriver; |
26 class GCMClientFactory; | 30 class GCMClientFactory; |
27 | 31 |
| 32 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 33 |
28 std::unique_ptr<GCMDriver> CreateGCMDriverDesktop( | 34 std::unique_ptr<GCMDriver> CreateGCMDriverDesktop( |
29 std::unique_ptr<GCMClientFactory> gcm_client_factory, | 35 std::unique_ptr<GCMClientFactory> gcm_client_factory, |
30 PrefService* prefs, | 36 PrefService* prefs, |
31 const base::FilePath& store_path, | 37 const base::FilePath& store_path, |
32 const scoped_refptr<net::URLRequestContextGetter>& request_context, | 38 const scoped_refptr<net::URLRequestContextGetter>& request_context, |
| 39 const std::string& product_shortname, |
33 version_info::Channel channel, | 40 version_info::Channel channel, |
34 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, | 41 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, |
35 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, | 42 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, |
36 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); | 43 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); |
37 | 44 |
38 } // namespace gcm | 45 } // namespace gcm |
39 | 46 |
40 #endif // COMPONENTS_GCM_DRIVER_GCM_GCM_DESKTOP_UTILS_H_ | 47 #endif // COMPONENTS_GCM_DRIVER_GCM_GCM_DESKTOP_UTILS_H_ |
OLD | NEW |