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

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

Issue 1316863010: browser: implement multiple permission requesting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@request-multiple-content
Patch Set: Fix memory leak in permission_manager Created 5 years, 3 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 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 19 matching lines...) Expand all
60 scoped_ptr<LastRequestResultCache> result_cache_; 67 scoped_ptr<LastRequestResultCache> result_cache_;
61 68
62 base::WeakPtrFactory<AwPermissionManager> weak_ptr_factory_; 69 base::WeakPtrFactory<AwPermissionManager> weak_ptr_factory_;
63 70
64 DISALLOW_COPY_AND_ASSIGN(AwPermissionManager); 71 DISALLOW_COPY_AND_ASSIGN(AwPermissionManager);
65 }; 72 };
66 73
67 } // namespace android_webview 74 } // namespace android_webview
68 75
69 #endif // ANDROID_WEBVIEW_BROWSER_AW_PERMISSION_MANAGER_H_ 76 #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') | android_webview/browser/aw_permission_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698