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

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

Issue 2746783002: [ServiceWorker] Mojofy InstallEvent of Service Worker (Closed)
Patch Set: Just delete a useless line Created 3 years, 7 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 #include "modules/serviceworkers/ForeignFetchOptions.h" 11 #include "modules/serviceworkers/ForeignFetchOptions.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class MODULES_EXPORT InstallEvent : public ExtendableEvent { 15 class MODULES_EXPORT InstallEvent : public ExtendableEvent {
16 DEFINE_WRAPPERTYPEINFO(); 16 DEFINE_WRAPPERTYPEINFO();
17 17
18 public: 18 public:
19 static InstallEvent* Create(const AtomicString& type, 19 static InstallEvent* Create(const AtomicString& type,
20 const ExtendableEventInit&); 20 const ExtendableEventInit&);
21 static InstallEvent* Create(const AtomicString& type, 21 static InstallEvent* Create(const AtomicString& type,
22 const ExtendableEventInit&, 22 const ExtendableEventInit&,
23 int event_id,
23 WaitUntilObserver*); 24 WaitUntilObserver*);
24 25
25 ~InstallEvent() override; 26 ~InstallEvent() override;
26 27
27 void registerForeignFetch(ScriptState*, 28 void registerForeignFetch(ScriptState*,
28 const ForeignFetchOptions&, 29 const ForeignFetchOptions&,
29 ExceptionState&); 30 ExceptionState&);
30 31
31 const AtomicString& InterfaceName() const override; 32 const AtomicString& InterfaceName() const override;
32 33
33 protected: 34 protected:
34 InstallEvent(const AtomicString& type, const ExtendableEventInit&); 35 InstallEvent(const AtomicString& type, const ExtendableEventInit&);
35 InstallEvent(const AtomicString& type, 36 InstallEvent(const AtomicString& type,
36 const ExtendableEventInit&, 37 const ExtendableEventInit&,
38 int event_id,
37 WaitUntilObserver*); 39 WaitUntilObserver*);
40 const int event_id_;
38 }; 41 };
39 42
40 } // namespace blink 43 } // namespace blink
41 44
42 #endif // InstallEvent_h 45 #endif // InstallEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698