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

Side by Side Diff: components/arc/arc_bridge_service_factory.h

Issue 1412863004: arc-bridge: Add the ARC Bridge Service (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Added Pref names and separated file I/O to the correct thread Created 5 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved.
hidehiko 2015/10/28 17:48:45 nit: s/2012/2015/ :-).
Luis Héctor Chávez 2015/10/28 21:06:32 Done.
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 COMPONENTS_ARC_ARC_BRIDGE_SERVICE_FACTORY_H_
6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_FACTORY_H_
7
8 #include "base/memory/singleton.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
10
11 namespace content {
12 class BrowserContext;
13 }
14
15 namespace arc {
16
17 class ArcBridgeService;
18
19 // Singleton that owns all ArcBridgeServices and associates them with
20 // Profiles. Listens for the Profile's destruction notification and cleans up
21 // the associated ArcBridgeService.
22 class ArcBridgeServiceFactory : public BrowserContextKeyedServiceFactory {
23 public:
24 static ArcBridgeService* GetForBrowserContext(
25 content::BrowserContext *context);
26
27 static ArcBridgeServiceFactory* GetInstance();
28
29 private:
30 friend struct base::DefaultSingletonTraits<ArcBridgeServiceFactory>;
31
32 ArcBridgeServiceFactory();
33 ~ArcBridgeServiceFactory() override;
34
35 // BrowserContextKeyedServiceFactory:
36 KeyedService* BuildServiceInstanceFor(
37 content::BrowserContext* profile) const override;
38 bool ServiceIsCreatedWithBrowserContext() const override;
39 };
40
41 } // namespace arc
42
43 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698