jitendra.ks | b1b7fee | 2015-09-22 17:42:53 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef COMPONENTS_GCM_DRIVER_GCM_GCM_DESKTOP_UTILS_H_ |
| 6 | #define COMPONENTS_GCM_DRIVER_GCM_GCM_DESKTOP_UTILS_H_ |
| 7 | |
dcheng | a77e28eb | 2016-04-21 21:34:37 | [diff] [blame] | 8 | #include <memory> |
| 9 | |
jitendra.ks | b1b7fee | 2015-09-22 17:42:53 | [diff] [blame] | 10 | #include "base/memory/ref_counted.h" |
jitendra.ks | b1b7fee | 2015-09-22 17:42:53 | [diff] [blame] | 11 | #include "base/sequenced_task_runner.h" |
| 12 | #include "components/version_info/version_info.h" |
| 13 | |
| 14 | class PrefService; |
| 15 | namespace base { |
| 16 | class FilePath; |
| 17 | } |
| 18 | |
| 19 | namespace net { |
| 20 | class URLRequestContextGetter; |
| 21 | } |
| 22 | |
Mark Pilgrim | 7634f5b5 | 2018-06-27 19:53:27 | [diff] [blame] | 23 | namespace network { |
| 24 | class SharedURLLoaderFactory; |
| 25 | } |
| 26 | |
jitendra.ks | b1b7fee | 2015-09-22 17:42:53 | [diff] [blame] | 27 | namespace gcm { |
| 28 | |
| 29 | class GCMDriver; |
| 30 | class GCMClientFactory; |
| 31 | |
dcheng | a77e28eb | 2016-04-21 21:34:37 | [diff] [blame] | 32 | std::unique_ptr<GCMDriver> CreateGCMDriverDesktop( |
| 33 | std::unique_ptr<GCMClientFactory> gcm_client_factory, |
jitendra.ks | b1b7fee | 2015-09-22 17:42:53 | [diff] [blame] | 34 | PrefService* prefs, |
| 35 | const base::FilePath& store_path, |
| 36 | const scoped_refptr<net::URLRequestContextGetter>& request_context, |
Mark Pilgrim | 7634f5b5 | 2018-06-27 19:53:27 | [diff] [blame] | 37 | scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory, |
jitendra.ks | b1b7fee | 2015-09-22 17:42:53 | [diff] [blame] | 38 | version_info::Channel channel, |
johnme | 627dc8c7 | 2016-08-19 21:49:39 | [diff] [blame] | 39 | const std::string& product_category_for_subtypes, |
jitendra.ks | b1b7fee | 2015-09-22 17:42:53 | [diff] [blame] | 40 | const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, |
| 41 | const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, |
| 42 | const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); |
| 43 | |
| 44 | } // namespace gcm |
| 45 | |
| 46 | #endif // COMPONENTS_GCM_DRIVER_GCM_GCM_DESKTOP_UTILS_H_ |