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

Unified Diff: third_party/WebKit/Source/modules/background_sync/BackgroundSyncClientImpl.h

Issue 2517223002: Move content/renderer/background_sync to Blink (Closed)
Patch Set: Fix broken WebEmbeddedWorker test 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/Source/modules/background_sync/BackgroundSyncClientImpl.h
diff --git a/third_party/WebKit/Source/modules/background_sync/BackgroundSyncClientImpl.h b/third_party/WebKit/Source/modules/background_sync/BackgroundSyncClientImpl.h
new file mode 100644
index 0000000000000000000000000000000000000000..03c5df3650d0dcb4bf38102e4f11b0c583d89371
--- /dev/null
+++ b/third_party/WebKit/Source/modules/background_sync/BackgroundSyncClientImpl.h
@@ -0,0 +1,39 @@
+// Copyright 2016 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 BackgroundSyncClientImpl_h
+#define BackgroundSyncClientImpl_h
+
+#include "base/macros.h"
+#include "modules/serviceworkers/ServiceWorkerGlobalScope.h"
+#include "public/platform/WebCommon.h"
+#include "public/platform/modules/background_sync/background_sync.mojom-blink.h"
+#include "wtf/Compiler.h"
+
+namespace blink {
+
+class BLINK_EXPORT BackgroundSyncClientImpl
+ : public WTF_NON_EXPORTED_BASE(mojom::blink::BackgroundSyncServiceClient) {
+ public:
+ static void Create(ServiceWorkerGlobalScope*,
+ mojom::blink::BackgroundSyncServiceClientRequest);
+
+ ~BackgroundSyncClientImpl() override;
+
+ private:
+ BackgroundSyncClientImpl(ServiceWorkerGlobalScope*);
+
+ // BackgroundSyncServiceClient methods:
+ void Sync(const WTF::String& tag,
+ mojom::blink::BackgroundSyncEventLastChance,
+ const SyncCallback&) override;
+
+ CrossThreadPersistent<ServiceWorkerGlobalScope> m_globalScope;
+
+ DISALLOW_COPY_AND_ASSIGN(BackgroundSyncClientImpl);
+};
+
+} // namespace blink
+
+#endif // BackgroundSyncClientImpl_h

Powered by Google App Engine
This is Rietveld 408576698