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