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

Side by Side Diff: chrome/browser/ui/bluetooth/bluetooth_chooser_context_factory.h

Issue 1560263002: Store Bluetooth permissions in website settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address reillyg@'s comments Created 4 years, 11 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
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_CONTEXT_FACTORY_H_
6 #define CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_CONTEXT_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "base/memory/singleton.h"
10 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
11
12 class BluetoothChooserContext;
13 class Profile;
14
15 class BluetoothChooserContextFactory
16 : public BrowserContextKeyedServiceFactory {
17 public:
18 static BluetoothChooserContext* GetForProfile(Profile* profile);
19 static BluetoothChooserContextFactory* GetInstance();
20
21 private:
22 friend struct base::DefaultSingletonTraits<BluetoothChooserContextFactory>;
23
24 BluetoothChooserContextFactory();
25 ~BluetoothChooserContextFactory() override;
26
27 // BrowserContextKeyedBaseFactory methods:
28 KeyedService* BuildServiceInstanceFor(
29 content::BrowserContext* profile) const override;
30 content::BrowserContext* GetBrowserContextToUse(
31 content::BrowserContext* context) const override;
32
33 DISALLOW_COPY_AND_ASSIGN(BluetoothChooserContextFactory);
34 };
35
36 #endif // CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_CONTEXT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698