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_UTILS_H_ | 5 #ifndef CHROME_BROWSER_SERVICES_GCM_GCM_UTILS_H_ |
6 #define CHROME_BROWSER_SERVICES_GCM_GCM_UTILS_H_ | 6 #define CHROME_BROWSER_SERVICES_GCM_GCM_UTILS_H_ |
7 | 7 |
8 #include "google_apis/gcm/gcm_client.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 |
| 11 class IdentityProvider; |
| 12 |
| 13 namespace base { |
| 14 class FilePath; |
| 15 } |
| 16 |
| 17 namespace net { |
| 18 class URLRequestContextGetter; |
| 19 } |
9 | 20 |
10 namespace gcm { | 21 namespace gcm { |
11 | 22 |
12 // Returns the chrome build info that is passed to GCM. | 23 class GCMDriver; |
13 GCMClient::ChromeBuildInfo GetChromeBuildInfo(); | 24 class GCMClientFactory; |
| 25 |
| 26 scoped_ptr<GCMDriver> CreateGCMDriverDesktop( |
| 27 scoped_ptr<GCMClientFactory> gcm_client_factory, |
| 28 scoped_ptr<IdentityProvider> identity_provider, |
| 29 const base::FilePath& store_path, |
| 30 const scoped_refptr<net::URLRequestContextGetter>& request_context); |
14 | 31 |
15 } // namespace gcm | 32 } // namespace gcm |
16 | 33 |
17 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_UTILS_H_ | 34 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_UTILS_H_ |
OLD | NEW |