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

Side by Side Diff: android_webview/browser/aw_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 ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_
7
8 #include "base/callback_forward.h"
9 #include "base/macros.h"
10 #include "content/public/browser/permission_manager.h"
11
12 namespace android_webview {
13
14 class AwPermissionManager : public content::PermissionManager {
15 public:
16 AwPermissionManager();
17 ~AwPermissionManager() override;
18
19 // PermissionManager implementation.
20 void RequestPermission(
21 content::PermissionType permission,
22 content::WebContents* web_contents,
23 int request_id,
24 const GURL& requesting_origin,
25 bool user_gesture,
26 const base::Callback<void(content::PermissionStatus)>& callback) override;
27 void CancelPermissionRequest(content::PermissionType permission,
28 content::WebContents* web_contents,
29 int request_id,
30 const GURL& requesting_origin) override;
31 void ResetPermission(content::PermissionType permission,
32 const GURL& requesting_origin,
33 const GURL& embedding_origin) override;
34 content::PermissionStatus GetPermissionStatus(
35 content::PermissionType permission,
36 const GURL& requesting_origin,
37 const GURL& embedding_origin) override;
38 void RegisterPermissionUsage(content::PermissionType permission,
39 const GURL& requesting_origin,
40 const GURL& embedding_origin) override;
41
42 private:
43 DISALLOW_COPY_AND_ASSIGN(AwPermissionManager);
44 };
45
46 } // namespace android_webview
47
48 #endif // ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_content_browser_client.cc ('k') | android_webview/browser/aw_permission_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698