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

Unified Diff: third_party/WebKit/public/platform/modules/background_sync/WebSyncProvider.h

Issue 2473483012: Move content/child/background_sync to Blink. (Closed)
Patch Set: Fix nits Created 4 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
Index: third_party/WebKit/public/platform/modules/background_sync/WebSyncProvider.h
diff --git a/third_party/WebKit/public/platform/modules/background_sync/WebSyncProvider.h b/third_party/WebKit/public/platform/modules/background_sync/WebSyncProvider.h
deleted file mode 100644
index da85b15bc55e78a9348d4191946ea81ce101c405..0000000000000000000000000000000000000000
--- a/third_party/WebKit/public/platform/modules/background_sync/WebSyncProvider.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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 WebSyncProvider_h
-#define WebSyncProvider_h
-
-#include "public/platform/WebCallbacks.h"
-#include "public/platform/WebCommon.h"
-#include "public/platform/WebString.h"
-#include "public/platform/WebVector.h"
-#include "public/platform/modules/background_sync/WebSyncError.h"
-#include "public/platform/modules/background_sync/WebSyncRegistration.h"
-
-#include <memory>
-
-namespace blink {
-
-class WebServiceWorkerRegistration;
-using WebSyncRegistrationCallbacks =
- WebCallbacks<std::unique_ptr<WebSyncRegistration>, const WebSyncError&>;
-using WebSyncGetRegistrationsCallbacks =
- WebCallbacks<const WebVector<WebSyncRegistration*>&, const WebSyncError&>;
-
-class WebSyncProvider {
- public:
- virtual ~WebSyncProvider() {}
-
- // Takes ownership of the WebSyncRegistrationCallbacks.
- // Does not take ownership of the WebServiceWorkerRegistration.
- virtual void registerBackgroundSync(const WebSyncRegistration*,
- WebServiceWorkerRegistration*,
- WebSyncRegistrationCallbacks*) = 0;
-
- // Takes ownership of the WebSyncGetRegistrationsCallbacks.
- // Does not take ownership of the WebServiceWorkerRegistration.
- virtual void getRegistrations(WebServiceWorkerRegistration*,
- WebSyncGetRegistrationsCallbacks*) = 0;
-};
-
-} // namespace blink
-
-#endif // WebSyncProvider_h

Powered by Google App Engine
This is Rietveld 408576698