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

Unified 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, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/services/gcm/gcm_utils.h
diff --git a/chrome/browser/services/gcm/gcm_utils.h b/chrome/browser/services/gcm/gcm_utils.h
index 942dc8bf1a8cc280f691e6f3c4f99e01e3f57e4a..cb0e9da70aacfc51948246cb7ce69b0557ccc289 100644
--- a/chrome/browser/services/gcm/gcm_utils.h
+++ b/chrome/browser/services/gcm/gcm_utils.h
@@ -5,12 +5,29 @@
#ifndef CHROME_BROWSER_SERVICES_GCM_GCM_UTILS_H_
#define CHROME_BROWSER_SERVICES_GCM_GCM_UTILS_H_
-#include "google_apis/gcm/gcm_client.h"
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
+
+class IdentityProvider;
+
+namespace base {
+class FilePath;
+}
+
+namespace net {
+class URLRequestContextGetter;
+}
namespace gcm {
-// Returns the chrome build info that is passed to GCM.
-GCMClient::ChromeBuildInfo GetChromeBuildInfo();
+class GCMDriver;
+class GCMClientFactory;
+
+scoped_ptr<GCMDriver> CreateGCMDriverDesktop(
+ scoped_ptr<GCMClientFactory> gcm_client_factory,
+ scoped_ptr<IdentityProvider> identity_provider,
+ const base::FilePath& store_path,
+ const scoped_refptr<net::URLRequestContextGetter>& request_context);
} // namespace gcm

Powered by Google App Engine
This is Rietveld 408576698