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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 WebServicePortCallbacks_h 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_INTERNALS_HELPER_H_
6 #define WebServicePortCallbacks_h 6 #define COMPONENTS_GCM_DRIVER_GCM_INTERNALS_HELPER_H_
7 7
8 #include "public/platform/WebCallbacks.h" 8 #include <vector>
9 #include "public/platform/modules/navigator_services/WebServicePort.h"
10 9
11 namespace blink { 10 #include "components/gcm_driver/gcm_client.h"
12 11
13 using WebServicePortConnectCallbacks = WebCallbacks<WebServicePortID*, void>; 12 class PrefService;
14 13
15 // Ownership of the ports passed to onSuccess is kept with the caller, and its 14 namespace base {
16 // lifetime does not outlive past the end of the onSuccess call. 15 class DictionaryValue;
17 using WebServicePortConnectEventCallbacks = WebCallbacks<WebServicePort*, void>; 16 }
18 17
19 } // namespace blink 18 namespace gcm {
19 class GCMProfileService;
20 }
20 21
21 #endif // WebServicePortCallbacks_h 22 namespace gcm_driver {
23
24 // Sets the GCM infos for the gcm-internals WebUI in |results|.
25 void SetGCMInternalsInfo(const gcm::GCMClient::GCMStatistics* stats,
26 gcm::GCMProfileService* profile_service,
27 PrefService* prefs,
28 base::DictionaryValue* results);
29
30 } // namespace gcm_driver
31
32 #endif // COMPONENTS_GCM_DRIVER_GCM_INTERNALS_HELPER_H_
OLDNEW
« 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