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

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

Issue 2928823004: Fix header guard and namespace in android_webview (Closed)
Patch Set: Fix header guard and namespace in android_webview Created 3 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
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_NATIVE_PERMISSION_AW_PERMISSION_REQUEST_DELEGATE_H 5 #ifndef ANDROID_WEBVIEW_BROWSER_PERMISSION_AW_PERMISSION_REQUEST_DELEGATE_H_
6 #define ANDROID_WEBVIEW_NATIVE_PERMISSION_AW_PERMISSION_REQUEST_DELEGATE_H 6 #define ANDROID_WEBVIEW_BROWSER_PERMISSION_AW_PERMISSION_REQUEST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace android_webview { 13 namespace android_webview {
14 14
15 // The delegate interface to be implemented for a specific permission request. 15 // The delegate interface to be implemented for a specific permission request.
16 class AwPermissionRequestDelegate { 16 class AwPermissionRequestDelegate {
17 public: 17 public:
18 AwPermissionRequestDelegate(); 18 AwPermissionRequestDelegate();
19 virtual ~AwPermissionRequestDelegate(); 19 virtual ~AwPermissionRequestDelegate();
20 20
21 // Get the origin which initiated the permission request. 21 // Get the origin which initiated the permission request.
22 virtual const GURL& GetOrigin() = 0; 22 virtual const GURL& GetOrigin() = 0;
23 23
24 // Get the resources the origin wanted to access. 24 // Get the resources the origin wanted to access.
25 virtual int64_t GetResources() = 0; 25 virtual int64_t GetResources() = 0;
26 26
27 // Notify the permission request is allowed or not. 27 // Notify the permission request is allowed or not.
28 virtual void NotifyRequestResult(bool allowed) = 0; 28 virtual void NotifyRequestResult(bool allowed) = 0;
29 29
30 DISALLOW_COPY_AND_ASSIGN(AwPermissionRequestDelegate); 30 DISALLOW_COPY_AND_ASSIGN(AwPermissionRequestDelegate);
31 }; 31 };
32 32
33 } // namespace android_webivew 33 } // namespace android_webview
34 34
35 #endif // ANDROID_WEBVIEW_NATIVE_PERMISSION_AW_PERMISSION_REQUEST_DELEGATE_H 35 #endif // ANDROID_WEBVIEW_BROWSER_PERMISSION_AW_PERMISSION_REQUEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698