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

Side by Side Diff: public/platform/modules/permissions/WebPermissionClient.h

Issue 1241133002: blink: permissions: cleanup and add tests for revoke (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@permissions-revoke
Patch Set: Query -> Revoke Created 5 years, 5 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 | « LayoutTests/http/tests/permissions/chromium/test-revoke-worker.html ('k') | no next file » | 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 WebPermissionClient_h 5 #ifndef WebPermissionClient_h
6 #define WebPermissionClient_h 6 #define WebPermissionClient_h
7 7
8 #include "public/platform/WebCallbacks.h" 8 #include "public/platform/WebCallbacks.h"
9 #include "public/platform/modules/permissions/WebPermissionStatus.h" 9 #include "public/platform/modules/permissions/WebPermissionStatus.h"
10 #include "public/platform/modules/permissions/WebPermissionType.h" 10 #include "public/platform/modules/permissions/WebPermissionType.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 // WebPermissionQueryCallback is kept for backward compatibility 14 using WebPermissionCallback = WebCallbacks<WebPermissionStatus, void>;
15 using WebPermissionQueryCallback = WebCallbacks<WebPermissionStatus, void>;
16 using WebPermissionCallback = WebPermissionQueryCallback;
17 15
18 class WebPermissionObserver; 16 class WebPermissionObserver;
19 class WebURL; 17 class WebURL;
20 18
21 // This client is expected to do general permission handling. From simple 19 // This client is expected to do general permission handling. From simple
22 // permission query to requesting new permissions. 20 // permission query to requesting new permissions.
23 class WebPermissionClient { 21 class WebPermissionClient {
24 public: 22 public:
25 // Query the permission status of a given origin for a specific permission. 23 // Query the permission status of a given origin for a specific permission.
26 virtual void queryPermission(WebPermissionType, const WebURL&, WebPermission Callback*) { } 24 virtual void queryPermission(WebPermissionType, const WebURL&, WebPermission Callback*) { }
(...skipping 11 matching lines...) Expand all
38 // observer. 36 // observer.
39 virtual void stopListening(WebPermissionObserver*) { } 37 virtual void stopListening(WebPermissionObserver*) { }
40 38
41 protected: 39 protected:
42 virtual ~WebPermissionClient() { } 40 virtual ~WebPermissionClient() { }
43 }; 41 };
44 42
45 } // namespace blink 43 } // namespace blink
46 44
47 #endif // WebPermissionClient_h 45 #endif // WebPermissionClient_h
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/permissions/chromium/test-revoke-worker.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698