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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_permission_helper_delegate.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
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_permission_helper.cc ('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 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_VIWE_PERMISSION_HELPER_DELEGA TE_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DELEGA TE_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DELEGA TE_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DELEGA TE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 #include "content/public/browser/web_contents_observer.h" 10 #include "content/public/browser/web_contents_observer.h"
(...skipping 17 matching lines...) Expand all
28 28
29 virtual void RequestPointerLockPermission( 29 virtual void RequestPointerLockPermission(
30 bool user_gesture, 30 bool user_gesture,
31 bool last_unlocked_by_target, 31 bool last_unlocked_by_target,
32 const base::Callback<void(bool)>& callback) {} 32 const base::Callback<void(bool)>& callback) {}
33 33
34 // Requests Geolocation Permission from the embedder. 34 // Requests Geolocation Permission from the embedder.
35 virtual void RequestGeolocationPermission( 35 virtual void RequestGeolocationPermission(
36 int bridge_id, 36 int bridge_id,
37 const GURL& requesting_frame, 37 const GURL& requesting_frame,
38 bool user_gesture,
38 const base::Callback<void(bool)>& callback) {} 39 const base::Callback<void(bool)>& callback) {}
39 40
40 virtual void CancelGeolocationPermissionRequest(int bridge_id) {} 41 virtual void CancelGeolocationPermissionRequest(int bridge_id) {}
41 42
42 virtual void RequestFileSystemPermission( 43 virtual void RequestFileSystemPermission(
43 const GURL& url, 44 const GURL& url,
44 bool allowed_by_default, 45 bool allowed_by_default,
45 const base::Callback<void(bool)>& callback) {} 46 const base::Callback<void(bool)>& callback) {}
46 47
47 // Called when file system access is requested by the guest content using the 48 // Called when file system access is requested by the guest content using the
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 86
86 private: 87 private:
87 WebViewPermissionHelper* const web_view_permission_helper_; 88 WebViewPermissionHelper* const web_view_permission_helper_;
88 89
89 DISALLOW_COPY_AND_ASSIGN(WebViewPermissionHelperDelegate); 90 DISALLOW_COPY_AND_ASSIGN(WebViewPermissionHelperDelegate);
90 }; 91 };
91 92
92 } // namespace extensions 93 } // namespace extensions
93 94
94 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DEL EGATE_H_ 95 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DEL EGATE_H_
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_permission_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698