blob: 8663fb487e2f76234539e2f5f516e7d4042a17d6 [file] [log] [blame]
jitendra.ksb1b7fee2015-09-22 17:42:531// 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
dchenga77e28eb2016-04-21 21:34:378#include <memory>
9
jitendra.ksb1b7fee2015-09-22 17:42:5310#include "base/memory/ref_counted.h"
jitendra.ksb1b7fee2015-09-22 17:42:5311#include "base/sequenced_task_runner.h"
12#include "components/version_info/version_info.h"
13
14class PrefService;
15namespace base {
16class FilePath;
17}
18
19namespace net {
20class URLRequestContextGetter;
21}
22
Mark Pilgrim7634f5b52018-06-27 19:53:2723namespace network {
24class SharedURLLoaderFactory;
25}
26
jitendra.ksb1b7fee2015-09-22 17:42:5327namespace gcm {
28
29class GCMDriver;
30class GCMClientFactory;
31
dchenga77e28eb2016-04-21 21:34:3732std::unique_ptr<GCMDriver> CreateGCMDriverDesktop(
33 std::unique_ptr<GCMClientFactory> gcm_client_factory,
jitendra.ksb1b7fee2015-09-22 17:42:5334 PrefService* prefs,
35 const base::FilePath& store_path,
36 const scoped_refptr<net::URLRequestContextGetter>& request_context,
Mark Pilgrim7634f5b52018-06-27 19:53:2737 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
jitendra.ksb1b7fee2015-09-22 17:42:5338 version_info::Channel channel,
johnme627dc8c72016-08-19 21:49:3939 const std::string& product_category_for_subtypes,
jitendra.ksb1b7fee2015-09-22 17:42:5340 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_