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

Side by Side Diff: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchManager.h

Issue 2736143003: Introduce the Background Fetch module. (Closed)
Patch Set: more webexposed tests Created 3 years, 9 months 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 2017 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 BackgroundFetchManager_h
6 #define BackgroundFetchManager_h
7
8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "platform/heap/GarbageCollected.h"
11 #include "platform/heap/Handle.h"
12
13 namespace blink {
14
15 class ScriptState;
16 class ServiceWorkerRegistration;
17
18 // Implementation of the BackgroundFetchManager JavaScript object, accessible
19 // by developers through ServiceWorkerRegistration.backgroundFetch.
20 class BackgroundFetchManager final
21 : public GarbageCollected<BackgroundFetchManager>,
22 public ScriptWrappable {
23 DEFINE_WRAPPERTYPEINFO();
24
25 public:
26 static BackgroundFetchManager* create(
27 ServiceWorkerRegistration* registration) {
28 return new BackgroundFetchManager(registration);
29 }
30
31 ScriptPromise getTags(ScriptState*);
32
33 DECLARE_TRACE();
34
35 private:
36 explicit BackgroundFetchManager(ServiceWorkerRegistration*);
37
38 Member<ServiceWorkerRegistration> m_registration;
39 };
40
41 } // namespace blink
42
43 #endif // BackgroundFetchManager_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698