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

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

Issue 2649073002: Use a new Supplement constructor in Navigator supplements (part 2) (Closed)
Patch Set: temp Created 3 years, 11 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 | « no previous file | third_party/WebKit/Source/modules/permissions/NavigatorPermissions.cpp » ('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 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 "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 Navigator; 14 class Navigator;
15 class Permissions; 15 class Permissions;
16 16
17 class NavigatorPermissions final 17 class NavigatorPermissions final
18 : public GarbageCollected<NavigatorPermissions>, 18 : public GarbageCollected<NavigatorPermissions>,
19 public Supplement<Navigator> { 19 public Supplement<Navigator> {
20 USING_GARBAGE_COLLECTED_MIXIN(NavigatorPermissions); 20 USING_GARBAGE_COLLECTED_MIXIN(NavigatorPermissions);
21 21
22 public: 22 public:
23 static NavigatorPermissions& from(Navigator&); 23 static NavigatorPermissions& from(Navigator&);
24 static Permissions* permissions(Navigator&); 24 static Permissions* permissions(Navigator&);
25 25
26 DECLARE_VIRTUAL_TRACE(); 26 DECLARE_VIRTUAL_TRACE();
27 27
28 private: 28 private:
29 NavigatorPermissions(); 29 explicit NavigatorPermissions(Navigator&);
30 30
31 static const char* supplementName(); 31 static const char* supplementName();
32 32
33 Member<Permissions> m_permissions; 33 Member<Permissions> m_permissions;
34 }; 34 };
35 35
36 } // namespace blink 36 } // namespace blink
37 37
38 #endif // NavigatorPermissions_h 38 #endif // NavigatorPermissions_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/permissions/NavigatorPermissions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698