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

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

Issue 1419083002: Permissions: browser/ side implementation of multiple permissions request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PERMISSION_MANAGER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 10 matching lines...) Expand all
21 AwPermissionManager(); 21 AwPermissionManager();
22 ~AwPermissionManager() override; 22 ~AwPermissionManager() override;
23 23
24 // PermissionManager implementation. 24 // PermissionManager implementation.
25 int RequestPermission( 25 int RequestPermission(
26 content::PermissionType permission, 26 content::PermissionType permission,
27 content::RenderFrameHost* render_frame_host, 27 content::RenderFrameHost* render_frame_host,
28 const GURL& requesting_origin, 28 const GURL& requesting_origin,
29 bool user_gesture, 29 bool user_gesture,
30 const base::Callback<void(content::PermissionStatus)>& callback) override; 30 const base::Callback<void(content::PermissionStatus)>& callback) override;
31 int RequestPermissions(
32 const std::vector<content::PermissionType>& permissions,
33 content::RenderFrameHost* render_frame_host,
34 const GURL& requesting_origin,
35 bool user_gesture,
36 const base::Callback<void(
37 const std::vector<content::PermissionStatus>&)>& callback) override;
31 void CancelPermissionRequest(int request_id) override; 38 void CancelPermissionRequest(int request_id) override;
32 void ResetPermission(content::PermissionType permission, 39 void ResetPermission(content::PermissionType permission,
33 const GURL& requesting_origin, 40 const GURL& requesting_origin,
34 const GURL& embedding_origin) override; 41 const GURL& embedding_origin) override;
35 content::PermissionStatus GetPermissionStatus( 42 content::PermissionStatus GetPermissionStatus(
36 content::PermissionType permission, 43 content::PermissionType permission,
37 const GURL& requesting_origin, 44 const GURL& requesting_origin,
38 const GURL& embedding_origin) override; 45 const GURL& embedding_origin) override;
39 void RegisterPermissionUsage(content::PermissionType permission, 46 void RegisterPermissionUsage(content::PermissionType permission,
40 const GURL& requesting_origin, 47 const GURL& requesting_origin,
(...skipping 23 matching lines...) Expand all
64 scoped_ptr<LastRequestResultCache> result_cache_; 71 scoped_ptr<LastRequestResultCache> result_cache_;
65 72
66 base::WeakPtrFactory<AwPermissionManager> weak_ptr_factory_; 73 base::WeakPtrFactory<AwPermissionManager> weak_ptr_factory_;
67 74
68 DISALLOW_COPY_AND_ASSIGN(AwPermissionManager); 75 DISALLOW_COPY_AND_ASSIGN(AwPermissionManager);
69 }; 76 };
70 77
71 } // namespace android_webview 78 } // namespace android_webview
72 79
73 #endif // ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_ 80 #endif // ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_permission_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698