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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/InstallEvent.h

Issue 1656933003: Add origins argument to registerForeignFetchScopes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add url::Origin::operator== to make tests simpler Created 4 years, 10 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef InstallEvent_h 5 #ifndef InstallEvent_h
6 #define InstallEvent_h 6 #define InstallEvent_h
7 7
8 #include "modules/EventModules.h" 8 #include "modules/EventModules.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "modules/serviceworkers/ExtendableEvent.h" 10 #include "modules/serviceworkers/ExtendableEvent.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class USVStringOrUSVStringSequence;
15
14 class MODULES_EXPORT InstallEvent : public ExtendableEvent { 16 class MODULES_EXPORT InstallEvent : public ExtendableEvent {
15 DEFINE_WRAPPERTYPEINFO(); 17 DEFINE_WRAPPERTYPEINFO();
16 18
17 public: 19 public:
18 static PassRefPtrWillBeRawPtr<InstallEvent> create(); 20 static PassRefPtrWillBeRawPtr<InstallEvent> create();
19 static PassRefPtrWillBeRawPtr<InstallEvent> create(const AtomicString& type, const ExtendableEventInit&); 21 static PassRefPtrWillBeRawPtr<InstallEvent> create(const AtomicString& type, const ExtendableEventInit&);
20 static PassRefPtrWillBeRawPtr<InstallEvent> create(const AtomicString& type, const ExtendableEventInit&, WaitUntilObserver*); 22 static PassRefPtrWillBeRawPtr<InstallEvent> create(const AtomicString& type, const ExtendableEventInit&, WaitUntilObserver*);
21 23
22 ~InstallEvent() override; 24 ~InstallEvent() override;
23 25
24 void registerForeignFetchScopes(ExecutionContext*, const Vector<String>& sub Scopes, ExceptionState&); 26 void registerForeignFetchScopes(ExecutionContext*, const Vector<String>& sub Scopes, const USVStringOrUSVStringSequence& origins, ExceptionState&);
25 27
26 const AtomicString& interfaceName() const override; 28 const AtomicString& interfaceName() const override;
27 29
28 protected: 30 protected:
29 InstallEvent(); 31 InstallEvent();
30 InstallEvent(const AtomicString& type, const ExtendableEventInit&); 32 InstallEvent(const AtomicString& type, const ExtendableEventInit&);
31 InstallEvent(const AtomicString& type, const ExtendableEventInit&, WaitUntil Observer*); 33 InstallEvent(const AtomicString& type, const ExtendableEventInit&, WaitUntil Observer*);
32 }; 34 };
33 35
34 } // namespace blink 36 } // namespace blink
35 37
36 #endif // InstallEvent_h 38 #endif // InstallEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698