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

Side by Side Diff: android_webview/native/permission/aw_permission_request_delegate.h

Issue 239793002: Handle media access permission request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix error, landed it again Created 6 years, 7 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 2014 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_NATIVE_PERMISSION_AW_PERMISSION_REQUEST_DELEGATE_H
6 #define ANDROID_WEBVIEW_NATIVE_PERMISSION_AW_PERMISSION_REQUEST_DELEGATE_H
7
8 #include "base/basictypes.h"
9 #include "base/macros.h"
10 #include "url/gurl.h"
11
12 namespace android_webview {
13
14 // The delegate interface to be implemented for a specific permission request.
15 class AwPermissionRequestDelegate {
16 public:
17 AwPermissionRequestDelegate();
18 virtual ~AwPermissionRequestDelegate();
19
20 // Get the origin which initiated the permission request.
21 virtual const GURL& GetOrigin() = 0;
22
23 // Get the resources the origin wanted to access.
24 virtual int64 GetResources() = 0;
25
26 // Notify the permission request is allowed or not.
27 virtual void NotifyRequestResult(bool allowed) = 0;
28
29 DISALLOW_COPY_AND_ASSIGN(AwPermissionRequestDelegate);
30 };
31
32 } // namespace android_webivew
33
34 #endif // ANDROID_WEBVIEW_NATIVE_PERMISSION_AW_PERMISSION_REQUEST_DELEGATE_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698