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

Side by Side Diff: android_webview/browser/aw_permission_manager.h

Issue 2697473002: Remove last usage functions from HostContentSettingsMap and clean up prefs (Closed)
Patch Set: fix up unit test Created 3 years, 10 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 | android_webview/browser/aw_permission_manager.cc » ('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 ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 29 matching lines...) Expand all
40 void(const std::vector<blink::mojom::PermissionStatus>&)>& callback) 40 void(const std::vector<blink::mojom::PermissionStatus>&)>& callback)
41 override; 41 override;
42 void CancelPermissionRequest(int request_id) override; 42 void CancelPermissionRequest(int request_id) override;
43 void ResetPermission(content::PermissionType permission, 43 void ResetPermission(content::PermissionType permission,
44 const GURL& requesting_origin, 44 const GURL& requesting_origin,
45 const GURL& embedding_origin) override; 45 const GURL& embedding_origin) override;
46 blink::mojom::PermissionStatus GetPermissionStatus( 46 blink::mojom::PermissionStatus GetPermissionStatus(
47 content::PermissionType permission, 47 content::PermissionType permission,
48 const GURL& requesting_origin, 48 const GURL& requesting_origin,
49 const GURL& embedding_origin) override; 49 const GURL& embedding_origin) override;
50 void RegisterPermissionUsage(content::PermissionType permission,
51 const GURL& requesting_origin,
52 const GURL& embedding_origin) override;
53 int SubscribePermissionStatusChange( 50 int SubscribePermissionStatusChange(
54 content::PermissionType permission, 51 content::PermissionType permission,
55 const GURL& requesting_origin, 52 const GURL& requesting_origin,
56 const GURL& embedding_origin, 53 const GURL& embedding_origin,
57 const base::Callback<void(blink::mojom::PermissionStatus)>& callback) 54 const base::Callback<void(blink::mojom::PermissionStatus)>& callback)
58 override; 55 override;
59 void UnsubscribePermissionStatusChange(int subscription_id) override; 56 void UnsubscribePermissionStatusChange(int subscription_id) override;
60 57
61 protected: 58 protected:
62 void CancelPermissionRequests(); 59 void CancelPermissionRequests();
(...skipping 22 matching lines...) Expand all
85 std::unique_ptr<LastRequestResultCache> result_cache_; 82 std::unique_ptr<LastRequestResultCache> result_cache_;
86 83
87 base::WeakPtrFactory<AwPermissionManager> weak_ptr_factory_; 84 base::WeakPtrFactory<AwPermissionManager> weak_ptr_factory_;
88 85
89 DISALLOW_COPY_AND_ASSIGN(AwPermissionManager); 86 DISALLOW_COPY_AND_ASSIGN(AwPermissionManager);
90 }; 87 };
91 88
92 } // namespace android_webview 89 } // namespace android_webview
93 90
94 #endif // ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_ 91 #endif // ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_permission_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698