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

Side by Side Diff: third_party/WebKit/Source/modules/permissions/WorkerNavigatorPermissions.h

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 WorkerNavigatorPermissions_h 5 #ifndef WorkerNavigatorPermissions_h
6 #define WorkerNavigatorPermissions_h 6 #define WorkerNavigatorPermissions_h
7 7
8 #include "platform/Supplementable.h" 8 #include "platform/Supplementable.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class WorkerNavigator; 13 class WorkerNavigator;
14 class Permissions; 14 class Permissions;
15 15
16 class WorkerNavigatorPermissions final : public GarbageCollected<WorkerNavigator Permissions>, public HeapSupplement<WorkerNavigator> { 16 class WorkerNavigatorPermissions final : public GarbageCollected<WorkerNavigator Permissions>, public Supplement<WorkerNavigator> {
17 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigatorPermissions); 17 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigatorPermissions);
18 public: 18 public:
19 static WorkerNavigatorPermissions& from(WorkerNavigator&); 19 static WorkerNavigatorPermissions& from(WorkerNavigator&);
20 static Permissions* permissions(WorkerNavigator&); 20 static Permissions* permissions(WorkerNavigator&);
21 21
22 DECLARE_VIRTUAL_TRACE(); 22 DECLARE_VIRTUAL_TRACE();
23 23
24 private: 24 private:
25 static const char* supplementName(); 25 static const char* supplementName();
26 26
27 WorkerNavigatorPermissions(); 27 WorkerNavigatorPermissions();
28 28
29 Member<Permissions> m_permissions; 29 Member<Permissions> m_permissions;
30 }; 30 };
31 31
32 } // namespace blink 32 } // namespace blink
33 33
34 #endif // WorkerNavigatorPermissions_h 34 #endif // WorkerNavigatorPermissions_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698