OLD | NEW |
---|---|
(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/android/jni_helper.h" | |
9 #include "base/android/scoped_java_ref.h" | |
10 #include "base/callback.h" | |
11 #include "base/memory/ref_counted.h" | |
12 #include "url/gurl.h" | |
13 | |
14 namespace android_webview { | |
15 | |
16 // The delegate interface to be implemented for a specific permission request. | |
17 class AwPermissionRequestDelegate { | |
18 public: | |
19 AwPermissionRequestDelegate(); | |
20 virtual ~AwPermissionRequestDelegate(); | |
21 | |
22 // Get the origin which initiated the permission request. | |
23 virtual const GURL& GetOrigin() = 0; | |
24 | |
25 // Get the resources the origin wanted to access. | |
26 virtual int64 GetResources() = 0; | |
27 | |
28 // Notify the permission request is allowed or not. | |
29 virtual void OnRequestResult(bool allowed) = 0; | |
benm (inactive)
2014/04/16 14:51:10
I think this makes it sound like we are beginning
michaelbai
2014/04/22 20:53:51
Done.
| |
30 | |
31 DISALLOW_COPY_AND_ASSIGN(AwPermissionRequestDelegate); | |
32 }; | |
33 | |
34 } // namespace android_webivew | |
35 | |
36 #endif // ANDROID_WEBVIEW_NATIVE_PERMISSION_AW_PERMISSION_REQUEST_DELEGATE_H | |
OLD | NEW |