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

Side by Side Diff: content/shell/browser/shell_permission_manager.h

Issue 1342833002: permissions: handle request ids for permissions in permission manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comment 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
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 CONTENT_SHELL_BROWSER_SHELL_PERMISSION_MANAGER_H_ 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_PERMISSION_MANAGER_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_PERMISSION_MANAGER_H_ 6 #define CONTENT_SHELL_BROWSER_SHELL_PERMISSION_MANAGER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "content/public/browser/permission_manager.h" 10 #include "content/public/browser/permission_manager.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class ShellPermissionManager : public PermissionManager { 14 class ShellPermissionManager : public PermissionManager {
15 public: 15 public:
16 ShellPermissionManager(); 16 ShellPermissionManager();
17 ~ShellPermissionManager() override; 17 ~ShellPermissionManager() override;
18 18
19 // PermissionManager implementation. 19 // PermissionManager implementation.
20 void RequestPermission( 20 int RequestPermission(
21 PermissionType permission, 21 PermissionType permission,
22 RenderFrameHost* render_frame_host, 22 RenderFrameHost* render_frame_host,
23 int request_id,
24 const GURL& requesting_origin, 23 const GURL& requesting_origin,
25 bool user_gesture, 24 bool user_gesture,
26 const base::Callback<void(PermissionStatus)>& callback) override; 25 const base::Callback<void(PermissionStatus)>& callback) override;
27 void CancelPermissionRequest(PermissionType permission, 26 void CancelPermissionRequest(PermissionType permission,
28 RenderFrameHost* render_frame_host, 27 RenderFrameHost* render_frame_host,
29 int request_id, 28 int request_id,
30 const GURL& requesting_origin) override; 29 const GURL& requesting_origin) override;
31 void ResetPermission(PermissionType permission, 30 void ResetPermission(PermissionType permission,
32 const GURL& requesting_origin, 31 const GURL& requesting_origin,
33 const GURL& embedding_origin) override; 32 const GURL& embedding_origin) override;
(...skipping 10 matching lines...) Expand all
44 const base::Callback<void(PermissionStatus)>& callback) override; 43 const base::Callback<void(PermissionStatus)>& callback) override;
45 void UnsubscribePermissionStatusChange(int subscription_id) override; 44 void UnsubscribePermissionStatusChange(int subscription_id) override;
46 45
47 private: 46 private:
48 DISALLOW_COPY_AND_ASSIGN(ShellPermissionManager); 47 DISALLOW_COPY_AND_ASSIGN(ShellPermissionManager);
49 }; 48 };
50 49
51 } // namespace content 50 } // namespace content
52 51
53 #endif // CONTENT_SHELL_BROWSER_SHELL_PERMISSION_MANAGER_H 52 #endif // CONTENT_SHELL_BROWSER_SHELL_PERMISSION_MANAGER_H
OLDNEW
« no previous file with comments | « content/shell/browser/layout_test/layout_test_permission_manager.cc ('k') | content/shell/browser/shell_permission_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698