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

Side by Side Diff: chromecast/browser/cast_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 CHROMECAST_BROWSER_CAST_PERMISSION_MANAGER_H_ 5 #ifndef CHROMECAST_BROWSER_CAST_PERMISSION_MANAGER_H_
6 #define CHROMECAST_BROWSER_CAST_PERMISSION_MANAGER_H_ 6 #define CHROMECAST_BROWSER_CAST_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 chromecast { 12 namespace chromecast {
13 namespace shell { 13 namespace shell {
14 14
15 class CastPermissionManager : public content::PermissionManager { 15 class CastPermissionManager : public content::PermissionManager {
16 public: 16 public:
17 CastPermissionManager(); 17 CastPermissionManager();
18 ~CastPermissionManager() override; 18 ~CastPermissionManager() override;
19 19
20 // content::PermissionManager implementation: 20 // content::PermissionManager implementation:
21 void RequestPermission( 21 int RequestPermission(
22 content::PermissionType permission, 22 content::PermissionType permission,
23 content::RenderFrameHost* render_frame_host, 23 content::RenderFrameHost* render_frame_host,
24 int request_id,
25 const GURL& requesting_origin, 24 const GURL& requesting_origin,
26 bool user_gesture, 25 bool user_gesture,
27 const base::Callback<void(content::PermissionStatus)>& callback) override; 26 const base::Callback<void(content::PermissionStatus)>& callback) override;
28 void CancelPermissionRequest(content::PermissionType permission, 27 void CancelPermissionRequest(content::PermissionType permission,
29 content::RenderFrameHost* render_frame_host, 28 content::RenderFrameHost* render_frame_host,
30 int request_id, 29 int request_id,
31 const GURL& requesting_origin) override; 30 const GURL& requesting_origin) override;
32 void ResetPermission(content::PermissionType permission, 31 void ResetPermission(content::PermissionType permission,
33 const GURL& requesting_origin, 32 const GURL& requesting_origin,
34 const GURL& embedding_origin) override; 33 const GURL& embedding_origin) override;
(...skipping 12 matching lines...) Expand all
47 void UnsubscribePermissionStatusChange(int subscription_id) override; 46 void UnsubscribePermissionStatusChange(int subscription_id) override;
48 47
49 private: 48 private:
50 DISALLOW_COPY_AND_ASSIGN(CastPermissionManager); 49 DISALLOW_COPY_AND_ASSIGN(CastPermissionManager);
51 }; 50 };
52 51
53 } // namespace shell 52 } // namespace shell
54 } // namespace chromecast 53 } // namespace chromecast
55 54
56 #endif // CHROMECAST_BROWSER_CAST_PERMISSION_MANAGER_H_ 55 #endif // CHROMECAST_BROWSER_CAST_PERMISSION_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/push_messaging/push_messaging_service_impl.cc ('k') | chromecast/browser/cast_permission_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698