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

Unified Diff: components/gcm_driver/gcm_internals_helper.h

Issue 1437133002: Componentize the GCM info collection for gcm-internals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « components/gcm_driver/BUILD.gn ('k') | components/gcm_driver/gcm_internals_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/gcm_internals_helper.h
diff --git a/third_party/WebKit/public/platform/modules/navigator_services/WebServicePortCallbacks.h b/components/gcm_driver/gcm_internals_helper.h
similarity index 26%
copy from third_party/WebKit/public/platform/modules/navigator_services/WebServicePortCallbacks.h
copy to components/gcm_driver/gcm_internals_helper.h
index a29e568728f9ba7b2f6f2d2a9127e629c57afa69..ee89602e94dc52f9c33ab5168a995eee116be172 100644
--- a/third_party/WebKit/public/platform/modules/navigator_services/WebServicePortCallbacks.h
+++ b/components/gcm_driver/gcm_internals_helper.h
@@ -2,20 +2,31 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WebServicePortCallbacks_h
-#define WebServicePortCallbacks_h
+#ifndef COMPONENTS_GCM_DRIVER_GCM_INTERNALS_HELPER_H_
+#define COMPONENTS_GCM_DRIVER_GCM_INTERNALS_HELPER_H_
-#include "public/platform/WebCallbacks.h"
-#include "public/platform/modules/navigator_services/WebServicePort.h"
+#include <vector>
-namespace blink {
+#include "components/gcm_driver/gcm_client.h"
-using WebServicePortConnectCallbacks = WebCallbacks<WebServicePortID*, void>;
+class PrefService;
-// Ownership of the ports passed to onSuccess is kept with the caller, and its
-// lifetime does not outlive past the end of the onSuccess call.
-using WebServicePortConnectEventCallbacks = WebCallbacks<WebServicePort*, void>;
+namespace base {
+class DictionaryValue;
+}
-} // namespace blink
+namespace gcm {
+class GCMProfileService;
+}
-#endif // WebServicePortCallbacks_h
+namespace gcm_driver {
+
+// Sets the GCM infos for the gcm-internals WebUI in |results|.
+void SetGCMInternalsInfo(const gcm::GCMClient::GCMStatistics* stats,
+ gcm::GCMProfileService* profile_service,
+ PrefService* prefs,
+ base::DictionaryValue* results);
+
+} // namespace gcm_driver
+
+#endif // COMPONENTS_GCM_DRIVER_GCM_INTERNALS_HELPER_H_
« no previous file with comments | « components/gcm_driver/BUILD.gn ('k') | components/gcm_driver/gcm_internals_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698