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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_permission_helper.h

Issue 2110343002: Reintroduce plumbing for user gesture into permission system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/metrics/user_metrics_action.h" 10 #include "base/metrics/user_metrics_action.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void CanDownload(const GURL& url, 68 void CanDownload(const GURL& url,
69 const std::string& request_method, 69 const std::string& request_method,
70 const base::Callback<void(bool)>& callback); 70 const base::Callback<void(bool)>& callback);
71 void RequestPointerLockPermission(bool user_gesture, 71 void RequestPointerLockPermission(bool user_gesture,
72 bool last_unlocked_by_target, 72 bool last_unlocked_by_target,
73 const base::Callback<void(bool)>& callback); 73 const base::Callback<void(bool)>& callback);
74 74
75 // Requests Geolocation Permission from the embedder. 75 // Requests Geolocation Permission from the embedder.
76 void RequestGeolocationPermission(int bridge_id, 76 void RequestGeolocationPermission(int bridge_id,
77 const GURL& requesting_frame, 77 const GURL& requesting_frame,
78 bool user_gesture,
78 const base::Callback<void(bool)>& callback); 79 const base::Callback<void(bool)>& callback);
79 void CancelGeolocationPermissionRequest(int bridge_id); 80 void CancelGeolocationPermissionRequest(int bridge_id);
80 81
81 void RequestFileSystemPermission(const GURL& url, 82 void RequestFileSystemPermission(const GURL& url,
82 bool allowed_by_default, 83 bool allowed_by_default,
83 const base::Callback<void(bool)>& callback); 84 const base::Callback<void(bool)>& callback);
84 85
85 // Called when file system access is requested by the guest content using the 86 // Called when file system access is requested by the guest content using the
86 // asynchronous HTML5 file system API. The request is plumbed through the 87 // asynchronous HTML5 file system API. The request is plumbed through the
87 // <webview> permission request API. The request will be: 88 // <webview> permission request API. The request will be:
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 WebViewGuest* const web_view_guest_; 160 WebViewGuest* const web_view_guest_;
160 161
161 base::WeakPtrFactory<WebViewPermissionHelper> weak_factory_; 162 base::WeakPtrFactory<WebViewPermissionHelper> weak_factory_;
162 163
163 DISALLOW_COPY_AND_ASSIGN(WebViewPermissionHelper); 164 DISALLOW_COPY_AND_ASSIGN(WebViewPermissionHelper);
164 }; 165 };
165 166
166 } // namespace extensions 167 } // namespace extensions
167 168
168 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_ 169 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_
OLDNEW
« no previous file with comments | « content/test/mock_permission_manager.cc ('k') | extensions/browser/guest_view/web_view/web_view_permission_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698