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

Side by Side Diff: content/public/browser/permission_manager.h

Issue 1011953003: Refactor Permissions related method out of ContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_type_enum_class
Patch Set: fix cros Created 5 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
(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 CONTENT_PUBLIC_BROWSER_PERMISSION_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_PERMISSION_MANAGER_H_
7
8 #include "content/common/content_export.h"
9 #include "content/public/common/permission_status.mojom.h"
10
11 class GURL;
12
13 namespace content {
14 enum class PermissionType;
15 class WebContents;
16
17 class CONTENT_EXPORT PermissionManager {
18 public:
19 virtual ~PermissionManager() = default;
20
21 virtual void RequestPermission(
22 PermissionType permission,
23 WebContents* web_contents,
24 int request_id,
25 const GURL& requesting_origin,
26 bool user_gesture,
27 const base::Callback<void(PermissionStatus)>& callback) = 0;
28
29 virtual void CancelPermissionRequest(PermissionType permission,
30 WebContents* web_contents,
31 int request_id,
32 const GURL& requesting_origin) = 0;
33
34 virtual PermissionStatus GetPermissionStatus(
35 PermissionType permission,
36 const GURL& requesting_origin,
37 const GURL& embedding_origin) = 0;
38
39 virtual void ResetPermission(PermissionType permission,
40 const GURL& requesting_origin,
41 const GURL& embedding_origin) = 0;
42
43 virtual void RegisterPermissionUsage(PermissionType permission,
44 const GURL& requesting_origin,
45 const GURL& embedding_origin) = 0;
46 };
47
48 } // namespace content
49
50 #endif // CONTENT_PUBLIC_BROWSER_PERMISSION_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | content/public/test/test_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698