OLD | NEW |
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_ |
OLD | NEW |