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

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

Issue 630403002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules/serviceworkers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/modules/serviceworkers/InstallEvent.h ('k') | Source/modules/serviceworkers/Request.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "platform/Supplementable.h" 9 #include "platform/Supplementable.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class Document; 14 class Document;
15 class Navigator; 15 class Navigator;
16 class ServiceWorkerContainer; 16 class ServiceWorkerContainer;
17 17
18 class NavigatorServiceWorker FINAL : public NoBaseWillBeGarbageCollected<Navigat orServiceWorker>, public WillBeHeapSupplement<Navigator>, DOMWindowProperty { 18 class NavigatorServiceWorker final : public NoBaseWillBeGarbageCollected<Navigat orServiceWorker>, public WillBeHeapSupplement<Navigator>, DOMWindowProperty {
19 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorServiceWorker); 19 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorServiceWorker);
20 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(NavigatorServiceWorker); 20 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(NavigatorServiceWorker);
21 public: 21 public:
22 static NavigatorServiceWorker* from(Document&); 22 static NavigatorServiceWorker* from(Document&);
23 static NavigatorServiceWorker& from(Navigator&); 23 static NavigatorServiceWorker& from(Navigator&);
24 static NavigatorServiceWorker* toNavigatorServiceWorker(Navigator&); 24 static NavigatorServiceWorker* toNavigatorServiceWorker(Navigator&);
25 static const char* supplementName(); 25 static const char* supplementName();
26 26
27 static ServiceWorkerContainer* serviceWorker(Navigator&); 27 static ServiceWorkerContainer* serviceWorker(Navigator&);
28 28
29 virtual void trace(Visitor*) OVERRIDE; 29 virtual void trace(Visitor*) override;
30 30
31 private: 31 private:
32 explicit NavigatorServiceWorker(Navigator&); 32 explicit NavigatorServiceWorker(Navigator&);
33 ServiceWorkerContainer* serviceWorker(); 33 ServiceWorkerContainer* serviceWorker();
34 34
35 // DOMWindowProperty override. 35 // DOMWindowProperty override.
36 virtual void willDetachGlobalObjectFromFrame() OVERRIDE; 36 virtual void willDetachGlobalObjectFromFrame() override;
37 37
38 PersistentWillBeMember<ServiceWorkerContainer> m_serviceWorker; 38 PersistentWillBeMember<ServiceWorkerContainer> m_serviceWorker;
39 }; 39 };
40 40
41 } // namespace blink 41 } // namespace blink
42 42
43 #endif // NavigatorServiceWorker_h 43 #endif // NavigatorServiceWorker_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/InstallEvent.h ('k') | Source/modules/serviceworkers/Request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698