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

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

Issue 1437883002: [Background Sync] Align exposed API with spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src@remove-periodic
Patch Set: Rebase Created 5 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/SyncEvent.h
diff --git a/third_party/WebKit/Source/modules/background_sync/SyncEvent.h b/third_party/WebKit/Source/modules/background_sync/SyncEvent.h
index d5b8665da6da6046e5224310a89b12461e4c4b1e..5b969a5106362f0c59ba33e4ea2f238e746e7479 100644
--- a/third_party/WebKit/Source/modules/background_sync/SyncEvent.h
+++ b/third_party/WebKit/Source/modules/background_sync/SyncEvent.h
@@ -22,9 +22,9 @@ public:
{
return adoptRefWillBeNoop(new SyncEvent);
}
- static PassRefPtrWillBeRawPtr<SyncEvent> create(const AtomicString& type, SyncRegistration* syncRegistration, bool lastChance, WaitUntilObserver* observer)
+ static PassRefPtrWillBeRawPtr<SyncEvent> create(const AtomicString& type, const String& tag, bool lastChance, WaitUntilObserver* observer)
{
- return adoptRefWillBeNoop(new SyncEvent(type, syncRegistration, lastChance, observer));
+ return adoptRefWillBeNoop(new SyncEvent(type, tag, lastChance, observer));
}
static PassRefPtrWillBeRawPtr<SyncEvent> create(const AtomicString& type, const SyncEventInit& init)
{
@@ -35,17 +35,17 @@ public:
const AtomicString& interfaceName() const override;
- SyncRegistration* registration();
+ String tag();
bool lastChance();
DECLARE_VIRTUAL_TRACE();
private:
SyncEvent();
- SyncEvent(const AtomicString& type, SyncRegistration*, bool, WaitUntilObserver*);
+ SyncEvent(const AtomicString& type, const String&, bool, WaitUntilObserver*);
SyncEvent(const AtomicString& type, const SyncEventInit&);
- PersistentWillBeMember<SyncRegistration> m_syncRegistration;
+ String m_tag;
bool m_lastChance;
};

Powered by Google App Engine
This is Rietveld 408576698