OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_MEDIA_PROTECTED_MEDIA_IDENTIFIER_PERMISSION_CONTEXT_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_PROTECTED_MEDIA_IDENTIFIER_PERMISSION_CONTEXT_H_ |
6 #define CHROME_BROWSER_MEDIA_PROTECTED_MEDIA_IDENTIFIER_PERMISSION_CONTEXT_H_ | 6 #define CHROME_BROWSER_MEDIA_PROTECTED_MEDIA_IDENTIFIER_PERMISSION_CONTEXT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/permissions/permission_context_base.h" | 10 #include "chrome/browser/permissions/permission_context_base.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 class Profile; | 21 class Profile; |
22 | 22 |
23 namespace views { | 23 namespace views { |
24 class Widget; | 24 class Widget; |
25 } | 25 } |
26 | 26 |
27 namespace content { | 27 namespace content { |
28 class WebContents; | 28 class WebContents; |
29 } | 29 } |
30 | 30 |
31 namespace user_prefs { | |
32 class PrefRegistrySyncable; | |
33 } | |
34 | |
35 // Manages protected media identifier permissions flow, and delegates UI | 31 // Manages protected media identifier permissions flow, and delegates UI |
36 // handling via PermissionQueueController. | 32 // handling via PermissionQueueController. |
37 class ProtectedMediaIdentifierPermissionContext | 33 class ProtectedMediaIdentifierPermissionContext |
38 : public PermissionContextBase { | 34 : public PermissionContextBase { |
39 public: | 35 public: |
40 explicit ProtectedMediaIdentifierPermissionContext(Profile* profile); | 36 explicit ProtectedMediaIdentifierPermissionContext(Profile* profile); |
41 ~ProtectedMediaIdentifierPermissionContext() override; | 37 ~ProtectedMediaIdentifierPermissionContext() override; |
42 | 38 |
43 // PermissionContextBase implementation. | 39 // PermissionContextBase implementation. |
44 #if defined(OS_CHROMEOS) | 40 #if defined(OS_CHROMEOS) |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 83 |
88 // Must be the last member, to ensure that it will be | 84 // Must be the last member, to ensure that it will be |
89 // destroyed first, which will invalidate weak pointers | 85 // destroyed first, which will invalidate weak pointers |
90 base::WeakPtrFactory<ProtectedMediaIdentifierPermissionContext> weak_factory_; | 86 base::WeakPtrFactory<ProtectedMediaIdentifierPermissionContext> weak_factory_; |
91 #endif | 87 #endif |
92 | 88 |
93 DISALLOW_COPY_AND_ASSIGN(ProtectedMediaIdentifierPermissionContext); | 89 DISALLOW_COPY_AND_ASSIGN(ProtectedMediaIdentifierPermissionContext); |
94 }; | 90 }; |
95 | 91 |
96 #endif // CHROME_BROWSER_MEDIA_PROTECTED_MEDIA_IDENTIFIER_PERMISSION_CONTEXT_H_ | 92 #endif // CHROME_BROWSER_MEDIA_PROTECTED_MEDIA_IDENTIFIER_PERMISSION_CONTEXT_H_ |
OLD | NEW |