Chromium Code Reviews| Index: public/platform/modules/background_sync/WebSyncClient.h |
| diff --git a/public/platform/modules/push_messaging/WebPushClient.h b/public/platform/modules/background_sync/WebSyncClient.h |
| similarity index 36% |
| copy from public/platform/modules/push_messaging/WebPushClient.h |
| copy to public/platform/modules/background_sync/WebSyncClient.h |
| index 09461099b18fd724a6b9ed7c41251d8d90bf18a2..09c11259cf8f95d856fbaa5b5e9dab4390392f7c 100644 |
| --- a/public/platform/modules/push_messaging/WebPushClient.h |
| +++ b/public/platform/modules/background_sync/WebSyncClient.h |
| @@ -1,31 +1,29 @@ |
| -// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef WebPushClient_h |
| -#define WebPushClient_h |
| +#ifndef WebSyncClient_h |
| +#define WebSyncClient_h |
| #include "public/platform/WebCallbacks.h" |
| -#include "public/platform/modules/push_messaging/WebPushError.h" |
| +#include "public/platform/modules/background_sync/WebSyncError.h" |
| namespace blink { |
| class WebServiceWorkerRegistration; |
| -struct WebPushSubscription; |
| +struct WebSyncRegistration; |
| -using WebPushSubscriptionCallbacks = WebCallbacks<WebPushSubscription, WebPushError>; |
| -// FIXME: Remove when no longer used by the embedder - https://crbug.com/446883. |
| -using WebPushRegistrationCallbacks = WebPushSubscriptionCallbacks; |
| +using WebSyncRegistrationCallbacks = WebCallbacks<WebSyncRegistration, WebSyncError>; |
| -class WebPushClient { |
| +class WebSyncClient { |
| public: |
| - virtual ~WebPushClient() { } |
| + virtual ~WebSyncClient() { } |
| // Ownership of the WebServiceWorkerRegistration is not transferred. |
| // Ownership of the callbacks is transferred to the client. |
| - virtual void registerPushMessaging(WebServiceWorkerRegistration*, WebPushRegistrationCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } |
| + virtual void registerSync(WebServiceWorkerRegistration*, WebSyncRegistrationCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } |
|
jochen (gone - plz use gerrit)
2015/02/24 10:23:55
why not make them pure virtual?
iclelland
2015/02/24 13:33:42
Done.
|
| }; |
| } // namespace blink |
| -#endif // WebPushClient_h |
| +#endif // WebSyncClient_h |