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

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

Issue 2691333002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Created 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 NavigatorServiceWorker_h 5 #ifndef NavigatorServiceWorker_h
6 #define NavigatorServiceWorker_h 6 #define NavigatorServiceWorker_h
7 7
8 #include "core/frame/Navigator.h" 8 #include "core/frame/Navigator.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "platform/Supplementable.h" 10 #include "platform/Supplementable.h"
11 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class Document; 15 class Document;
16 class ExceptionState; 16 class ExceptionState;
17 class Navigator; 17 class Navigator;
18 class ScriptState;
18 class ServiceWorkerContainer; 19 class ServiceWorkerContainer;
19 20
20 class MODULES_EXPORT NavigatorServiceWorker final 21 class MODULES_EXPORT NavigatorServiceWorker final
21 : public GarbageCollected<NavigatorServiceWorker>, 22 : public GarbageCollected<NavigatorServiceWorker>,
22 public Supplement<Navigator> { 23 public Supplement<Navigator> {
23 USING_GARBAGE_COLLECTED_MIXIN(NavigatorServiceWorker); 24 USING_GARBAGE_COLLECTED_MIXIN(NavigatorServiceWorker);
24 25
25 public: 26 public:
26 static NavigatorServiceWorker* from(Document&); 27 static NavigatorServiceWorker* from(Document&);
27 static NavigatorServiceWorker& from(Navigator&); 28 static NavigatorServiceWorker& from(Navigator&);
28 static NavigatorServiceWorker* toNavigatorServiceWorker(Navigator&); 29 static NavigatorServiceWorker* toNavigatorServiceWorker(Navigator&);
29 static ServiceWorkerContainer* serviceWorker(ExecutionContext*, 30 static ServiceWorkerContainer* serviceWorker(ScriptState*,
30 Navigator&, 31 Navigator&,
31 ExceptionState&); 32 ExceptionState&);
32 static ServiceWorkerContainer* serviceWorker(ExecutionContext*, 33 static ServiceWorkerContainer* serviceWorker(ScriptState*,
33 Navigator&, 34 Navigator&,
34 String& errorMessage); 35 String& errorMessage);
35 void clearServiceWorker(); 36 void clearServiceWorker();
36 37
37 DECLARE_VIRTUAL_TRACE(); 38 DECLARE_VIRTUAL_TRACE();
38 39
39 private: 40 private:
40 explicit NavigatorServiceWorker(Navigator&); 41 explicit NavigatorServiceWorker(Navigator&);
41 ServiceWorkerContainer* serviceWorker(LocalFrame*, ExceptionState&); 42 ServiceWorkerContainer* serviceWorker(LocalFrame*, ExceptionState&);
42 ServiceWorkerContainer* serviceWorker(LocalFrame*, String& errorMessage); 43 ServiceWorkerContainer* serviceWorker(LocalFrame*, String& errorMessage);
43 44
44 static const char* supplementName(); 45 static const char* supplementName();
45 46
46 Member<ServiceWorkerContainer> m_serviceWorker; 47 Member<ServiceWorkerContainer> m_serviceWorker;
47 }; 48 };
48 49
49 } // namespace blink 50 } // namespace blink
50 51
51 #endif // NavigatorServiceWorker_h 52 #endif // NavigatorServiceWorker_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698