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

Side by Side Diff: extensions/browser/api/cast_channel/cast_channel_service_factory.h

Issue 2891023002: [cast_channel] Make CastSocket not inherit from ApiResource (Closed)
Patch Set: Created 3 years, 7 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 2017 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 EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_SERVICE_FACTORY_H_
6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_SERVICE_FACTORY_H_
7
8 #include "base/lazy_instance.h"
9 #include "base/macros.h"
10 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
11
12 namespace extensions {
13 namespace api {
14 namespace cast_channel {
15
16 class CastChannelService;
17
18 class CastChannelServiceFactory : public BrowserContextKeyedServiceFactory {
mark a. foltz 2017/05/18 18:02:27 I think a CastSocket created by one profile (brows
zhaobin 2017/05/24 01:51:40 Created crbug.com/725717
19 public:
20 static CastChannelService* GetForBrowserContext(
21 content::BrowserContext* context);
22
23 static CastChannelServiceFactory* GetInstance();
24
25 private:
26 friend struct base::LazyInstanceTraitsBase<CastChannelServiceFactory>;
27
28 CastChannelServiceFactory();
29 ~CastChannelServiceFactory() override;
30
31 // BrowserContextKeyedServiceFactory interface.
32 content::BrowserContext* GetBrowserContextToUse(
33 content::BrowserContext* context) const override;
34
35 KeyedService* BuildServiceInstanceFor(
36 content::BrowserContext* context) const override;
37
38 DISALLOW_COPY_AND_ASSIGN(CastChannelServiceFactory);
39 };
40
41 } // namespace cast_channel
42 } // namespace api
43 } // namespace extensions
44
45 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_SERVICE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698