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 CHROME_BROWSER_SERVICES_GCM_GCM_DESKTOP_UTILS_H_ | 5 #ifndef CHROME_BROWSER_SERVICES_GCM_GCM_DESKTOP_UTILS_H_ |
6 #define CHROME_BROWSER_SERVICES_GCM_GCM_DESKTOP_UTILS_H_ | 6 #define CHROME_BROWSER_SERVICES_GCM_GCM_DESKTOP_UTILS_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 | 10 |
11 class PrefService; | 11 class PrefService; |
12 namespace base { | 12 namespace base { |
13 class FilePath; | 13 class FilePath; |
| 14 class SequencedTaskRunner; |
14 } | 15 } |
15 | 16 |
16 namespace net { | 17 namespace net { |
17 class URLRequestContextGetter; | 18 class URLRequestContextGetter; |
18 } | 19 } |
19 | 20 |
20 namespace gcm { | 21 namespace gcm { |
21 | 22 |
22 class GCMDriver; | 23 class GCMDriver; |
23 class GCMClientFactory; | 24 class GCMClientFactory; |
24 | 25 |
| 26 scoped_ptr<GCMDriver> CreateGCMDriverDesktopWithTaskRunners( |
| 27 scoped_ptr<GCMClientFactory> gcm_client_factory, |
| 28 PrefService* prefs, |
| 29 const base::FilePath& store_path, |
| 30 const scoped_refptr<net::URLRequestContextGetter>& request_context, |
| 31 const scoped_refptr<base::SequencedTaskRunner>& ui_thread, |
| 32 const scoped_refptr<base::SequencedTaskRunner>& io_thread, |
| 33 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); |
| 34 |
25 scoped_ptr<GCMDriver> CreateGCMDriverDesktop( | 35 scoped_ptr<GCMDriver> CreateGCMDriverDesktop( |
26 scoped_ptr<GCMClientFactory> gcm_client_factory, | 36 scoped_ptr<GCMClientFactory> gcm_client_factory, |
27 PrefService* prefs, | 37 PrefService* prefs, |
28 const base::FilePath& store_path, | 38 const base::FilePath& store_path, |
29 const scoped_refptr<net::URLRequestContextGetter>& request_context); | 39 const scoped_refptr<net::URLRequestContextGetter>& request_context); |
30 | 40 |
31 } // namespace gcm | 41 } // namespace gcm |
32 | 42 |
33 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_DESKTOP_UTILS_H_ | 43 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_DESKTOP_UTILS_H_ |
OLD | NEW |