[safe-browsing] Database full hash matches like prefix match.
[chromium-blink-merge.git] / chrome / browser / media / protected_media_identifier_permission_context_factory.h
blob1e5fcb47d42ce3b293c899ca59830a8a3c0c2bf7
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 "components/keyed_service/content/browser_context_keyed_service_factory.h"
11 class ProtectedMediaIdentifierPermissionContext;
12 class Profile;
14 class ProtectedMediaIdentifierPermissionContextFactory
15 : public BrowserContextKeyedServiceFactory {
16 public:
17 static ProtectedMediaIdentifierPermissionContext* GetForProfile(
18 Profile* profile);
20 static ProtectedMediaIdentifierPermissionContextFactory* GetInstance();
22 private:
23 friend struct DefaultSingletonTraits<
24 ProtectedMediaIdentifierPermissionContextFactory>;
26 ProtectedMediaIdentifierPermissionContextFactory();
27 virtual ~ProtectedMediaIdentifierPermissionContextFactory();
29 // BrowserContextKeyedBaseFactory methods:
30 virtual KeyedService* BuildServiceInstanceFor(
31 content::BrowserContext* profile) const OVERRIDE;
32 virtual void RegisterProfilePrefs(
33 user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
34 virtual content::BrowserContext* GetBrowserContextToUse(
35 content::BrowserContext* context) const OVERRIDE;
37 DISALLOW_COPY_AND_ASSIGN(
38 ProtectedMediaIdentifierPermissionContextFactory);
41 #endif // CHROME_BROWSER_MEDIA_PROTECTED_MEDIA_IDENTIFIER_PERMISSION_CONTEXT_FACTORY_H_