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

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

Issue 1158813002: Use RenderFrameHost for ::RequestPermission() and ::CancelPermission(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fixes Created 5 years, 6 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.h » ('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 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 ANDROID_WEBVIEW_BROWSER_AW_BROWSER_PERMISSION_REQUEST_DELEGATE_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_BROWSER_PERMISSION_REQUEST_DELEGATE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_PERMISSION_REQUEST_DELEGATE_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_PERMISSION_REQUEST_DELEGATE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
11 namespace android_webview { 11 namespace android_webview {
12 12
13 // Delegate interface to handle the permission requests from |BrowserContext|. 13 // Delegate interface to handle the permission requests from |BrowserContext|.
14 class AwBrowserPermissionRequestDelegate { 14 class AwBrowserPermissionRequestDelegate {
15 public: 15 public:
16 // Returns the AwBrowserPermissionRequestDelegate instance associated with 16 // Returns the AwBrowserPermissionRequestDelegate instance associated with
17 // the given render_process_id and render_view_id, or NULL. 17 // the given render_process_id and render_frame_id, or NULL.
18 static AwBrowserPermissionRequestDelegate* FromID(int render_process_id, 18 static AwBrowserPermissionRequestDelegate* FromID(int render_process_id,
19 int render_view_id); 19 int render_frame_id);
20 20
21 virtual void RequestProtectedMediaIdentifierPermission( 21 virtual void RequestProtectedMediaIdentifierPermission(
22 const GURL& origin, 22 const GURL& origin,
23 const base::Callback<void(bool)>& callback) = 0; 23 const base::Callback<void(bool)>& callback) = 0;
24 24
25 virtual void CancelProtectedMediaIdentifierPermissionRequests( 25 virtual void CancelProtectedMediaIdentifierPermissionRequests(
26 const GURL& origin) = 0; 26 const GURL& origin) = 0;
27 27
28 virtual void RequestGeolocationPermission( 28 virtual void RequestGeolocationPermission(
29 const GURL& origin, 29 const GURL& origin,
30 const base::Callback<void(bool)>& callback) = 0; 30 const base::Callback<void(bool)>& callback) = 0;
31 31
32 virtual void CancelGeolocationPermissionRequests(const GURL& origin) = 0; 32 virtual void CancelGeolocationPermissionRequests(const GURL& origin) = 0;
33 33
34 protected: 34 protected:
35 AwBrowserPermissionRequestDelegate() {} 35 AwBrowserPermissionRequestDelegate() {}
36 }; 36 };
37 37
38 } // namespace android_webview 38 } // namespace android_webview
39 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_PERMISSION_REQUEST_DELEGATE_H_ 39 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_PERMISSION_REQUEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_permission_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698