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

Side by Side Diff: Source/modules/permissions/PermissionController.h

Issue 804553003: Implement Permissions.query() and static PermissionStatus. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments Created 5 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
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/permissions/PermissionController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PermissionController_h
6 #define PermissionController_h
7
8 #include "core/frame/FrameDestructionObserver.h"
9 #include "platform/Supplementable.h"
10
11 namespace blink {
12
13 class WebPermissionClient;
14
15 class PermissionController final
16 : public WillBeHeapSupplement<LocalFrame>
17 , public FrameDestructionObserver {
18 WTF_MAKE_NONCOPYABLE(PermissionController);
19 public:
20 virtual ~PermissionController();
21
22 static void provideTo(LocalFrame&, WebPermissionClient*);
23 static PermissionController* from(LocalFrame&);
24 static const char* supplementName();
25
26 WebPermissionClient* client() const;
27
28 DECLARE_VIRTUAL_TRACE();
29
30 private:
31 PermissionController(LocalFrame&, WebPermissionClient*);
32
33 // Inherited from FrameDestructionObserver.
34 virtual void willDetachFrameHost() override;
35
36 WebPermissionClient* m_client;
37 };
38
39 } // namespace blink
40
41 #endif // PermissionController_h
OLDNEW
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/permissions/PermissionController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698