| OLD | NEW |
| 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 NavigatorPermissions_h | 5 #ifndef NavigatorPermissions_h |
| 6 #define NavigatorPermissions_h | 6 #define NavigatorPermissions_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 Navigator; | 13 class Navigator; |
| 14 class Permissions; | 14 class Permissions; |
| 15 | 15 |
| 16 class NavigatorPermissions final | 16 class NavigatorPermissions final : public GarbageCollected<NavigatorPermissions>
, public HeapSupplement<Navigator> { |
| 17 : public NoBaseWillBeGarbageCollectedFinalized<NavigatorPermissions> | 17 USING_GARBAGE_COLLECTED_MIXIN(NavigatorPermissions); |
| 18 , public WillBeHeapSupplement<Navigator> { | |
| 19 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorPermissions); | |
| 20 public: | 18 public: |
| 21 virtual ~NavigatorPermissions(); | |
| 22 | |
| 23 static NavigatorPermissions& from(Navigator&); | 19 static NavigatorPermissions& from(Navigator&); |
| 24 static Permissions* permissions(Navigator&); | 20 static Permissions* permissions(Navigator&); |
| 25 | 21 |
| 26 DECLARE_VIRTUAL_TRACE(); | 22 DECLARE_VIRTUAL_TRACE(); |
| 27 | 23 |
| 28 private: | 24 private: |
| 25 NavigatorPermissions(); |
| 26 |
| 29 static const char* supplementName(); | 27 static const char* supplementName(); |
| 30 | 28 |
| 31 NavigatorPermissions(); | 29 Member<Permissions> m_permissions; |
| 32 | |
| 33 PersistentWillBeMember<Permissions> m_permissions; | |
| 34 }; | 30 }; |
| 35 | 31 |
| 36 } // namespace blink | 32 } // namespace blink |
| 37 | 33 |
| 38 #endif // NavigatorPermissions_h | 34 #endif // NavigatorPermissions_h |
| OLD | NEW |