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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_MEDIA_PROTECTED_MEDIA_IDENTIFIER_PERMISSION_CONTEXT_FACTORY_H_
6 #define CHROME_BROWSER_MEDIA_PROTECTED_MEDIA_IDENTIFIER_PERMISSION_CONTEXT_FACTORY_H_
8 #include "base/memory/singleton.h"
9 #include "chrome/browser/permissions/permission_context_factory_base.h"
11 class ProtectedMediaIdentifierPermissionContext
;
14 class ProtectedMediaIdentifierPermissionContextFactory
15 : public PermissionContextFactoryBase
{
17 static ProtectedMediaIdentifierPermissionContext
* GetForProfile(
20 static ProtectedMediaIdentifierPermissionContextFactory
* GetInstance();
23 friend struct base::DefaultSingletonTraits
<
24 ProtectedMediaIdentifierPermissionContextFactory
>;
26 ProtectedMediaIdentifierPermissionContextFactory();
27 ~ProtectedMediaIdentifierPermissionContextFactory() override
;
29 // BrowserContextKeyedBaseFactory methods:
30 KeyedService
* BuildServiceInstanceFor(
31 content::BrowserContext
* profile
) const override
;
32 void RegisterProfilePrefs(
33 user_prefs::PrefRegistrySyncable
* registry
) override
;
35 DISALLOW_COPY_AND_ASSIGN(
36 ProtectedMediaIdentifierPermissionContextFactory
);
39 #endif // CHROME_BROWSER_MEDIA_PROTECTED_MEDIA_IDENTIFIER_PERMISSION_CONTEXT_FACTORY_H_