Add ICU message format support
[chromium-blink-merge.git] / content / shell / browser / shell_permission_manager.h
blob96a8e2c477ede1741b3a171a0fe5c5420872961b
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_SHELL_BROWSER_SHELL_PERMISSION_MANAGER_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_PERMISSION_MANAGER_H_
8 #include "base/callback_forward.h"
9 #include "base/macros.h"
10 #include "content/public/browser/permission_manager.h"
12 namespace content {
14 class ShellPermissionManager : public PermissionManager {
15 public:
16 ShellPermissionManager();
17 ~ShellPermissionManager() override;
19 // PermissionManager implementation.
20 void RequestPermission(
21 PermissionType permission,
22 RenderFrameHost* render_frame_host,
23 int request_id,
24 const GURL& requesting_origin,
25 bool user_gesture,
26 const base::Callback<void(PermissionStatus)>& callback) override;
27 void CancelPermissionRequest(PermissionType permission,
28 RenderFrameHost* render_frame_host,
29 int request_id,
30 const GURL& requesting_origin) override;
31 void ResetPermission(PermissionType permission,
32 const GURL& requesting_origin,
33 const GURL& embedding_origin) override;
34 PermissionStatus GetPermissionStatus(PermissionType permission,
35 const GURL& requesting_origin,
36 const GURL& embedding_origin) override;
37 void RegisterPermissionUsage(PermissionType permission,
38 const GURL& requesting_origin,
39 const GURL& embedding_origin) override;
40 int SubscribePermissionStatusChange(
41 PermissionType permission,
42 const GURL& requesting_origin,
43 const GURL& embedding_origin,
44 const base::Callback<void(PermissionStatus)>& callback) override;
45 void UnsubscribePermissionStatusChange(int subscription_id) override;
47 private:
48 DISALLOW_COPY_AND_ASSIGN(ShellPermissionManager);
51 } // namespace content
53 #endif // CONTENT_SHELL_BROWSER_SHELL_PERMISSION_MANAGER_H