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

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

Issue 204063002: Oilpan: add transition types to Navigator and its supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adjust use of 'virtual' Created 6 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
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 "bindings/v8/ScriptPromise.h" 8 #include "bindings/v8/ScriptPromise.h"
9 #include "core/frame/Navigator.h" 9 #include "core/frame/Navigator.h"
10 #include "heap/Handle.h"
10 #include "platform/Supplementable.h" 11 #include "platform/Supplementable.h"
11 12
12 namespace WebCore { 13 namespace WebCore {
13 14
14 class Navigator; 15 class Navigator;
15 class ServiceWorkerContainer; 16 class ServiceWorkerContainer;
16 17
17 class NavigatorServiceWorker FINAL : public Supplement<Navigator>, DOMWindowProp erty { 18 class NavigatorServiceWorker FINAL : public NoBaseWillBeGarbageCollectedFinalize d<NavigatorServiceWorker>, public WillBeHeapSupplement<Navigator>, DOMWindowProp erty {
19 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorServiceWorker);
18 public: 20 public:
19 virtual ~NavigatorServiceWorker(); 21 virtual ~NavigatorServiceWorker();
20 static NavigatorServiceWorker& from(Navigator&); 22 static NavigatorServiceWorker& from(Navigator&);
21 static NavigatorServiceWorker* toNavigatorServiceWorker(Navigator& navigator ) { return static_cast<NavigatorServiceWorker*>(Supplement<Navigator>::from(navi gator, supplementName())); } 23 static NavigatorServiceWorker* toNavigatorServiceWorker(Navigator&);
22 static const char* supplementName(); 24 static const char* supplementName();
23 25
24 static ServiceWorkerContainer* serviceWorker(ExecutionContext*, Navigator&); 26 static ServiceWorkerContainer* serviceWorker(ExecutionContext*, Navigator&);
25 27
28 void trace(Visitor*) { }
29
26 private: 30 private:
27 explicit NavigatorServiceWorker(Navigator&); 31 explicit NavigatorServiceWorker(Navigator&);
28 ServiceWorkerContainer* serviceWorker(ExecutionContext*); 32 ServiceWorkerContainer* serviceWorker(ExecutionContext*);
29 33
30 // DOMWindowProperty override. 34 // DOMWindowProperty override.
31 virtual void willDetachGlobalObjectFromFrame() OVERRIDE; 35 virtual void willDetachGlobalObjectFromFrame() OVERRIDE;
32 36
33 RefPtr<ServiceWorkerContainer> m_serviceWorker; 37 RefPtr<ServiceWorkerContainer> m_serviceWorker;
34 }; 38 };
35 39
36 } // namespace WebCore 40 } // namespace WebCore
37 41
38 #endif // NavigatorServiceWorker_h 42 #endif // NavigatorServiceWorker_h
OLDNEW
« no previous file with comments | « Source/modules/quota/NavigatorStorageQuota.cpp ('k') | Source/modules/serviceworkers/NavigatorServiceWorker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698