Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: chrome/browser/services/gcm/gcm_utils.h

Issue 301973009: Add browser-global GCMDriver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Addressed comments. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698