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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BackgroundSyncClientImpl_h
6 #define BackgroundSyncClientImpl_h
7
8 #include "base/macros.h"
9 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h"
10 #include "public/platform/WebCommon.h"
11 #include "public/platform/modules/background_sync/background_sync.mojom-blink.h"
12 #include "wtf/Compiler.h"
13
14 namespace blink {
15
16 class BLINK_EXPORT BackgroundSyncClientImpl
17 : public WTF_NON_EXPORTED_BASE(mojom::blink::BackgroundSyncServiceClient) {
18 public:
19 static void Create(ServiceWorkerGlobalScope*,
20 mojom::blink::BackgroundSyncServiceClientRequest);
21
22 ~BackgroundSyncClientImpl() override;
23
24 private:
25 BackgroundSyncClientImpl(ServiceWorkerGlobalScope*);
26
27 // BackgroundSyncServiceClient methods:
28 void Sync(const WTF::String& tag,
29 mojom::blink::BackgroundSyncEventLastChance,
30 const SyncCallback&) override;
31
32 CrossThreadPersistent<ServiceWorkerGlobalScope> m_globalScope;
33
34 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncClientImpl);
35 };
36
37 } // namespace blink
38
39 #endif // BackgroundSyncClientImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698