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

Side by Side Diff: components/cast_channel/cast_socket_service_factory.h

Issue 2913033003: [cast_channel] Move cast_channel related files from //extensions to //components (Closed)
Patch Set: fix buildbot compile errors Created 3 years, 6 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_SERVICE_FACTORY_H_ 5 #ifndef COMPONENTS_CAST_CHANNEL_CAST_SOCKET_SERVICE_FACTORY_H_
6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_SERVICE_FACTORY_H_ 6 #define COMPONENTS_CAST_CHANNEL_CAST_SOCKET_SERVICE_FACTORY_H_
7 7
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "components/keyed_service/content/refcounted_browser_context_keyed_serv ice_factory.h" 10 #include "components/keyed_service/content/refcounted_browser_context_keyed_serv ice_factory.h"
11 11
12 namespace extensions {
13 namespace api {
14 namespace cast_channel { 12 namespace cast_channel {
15 13
16 class CastSocketService; 14 class CastSocketService;
17 15
18 // TODO(crbug.com/725717): CastSocket created by one profile (browser context) 16 // TODO(crbug.com/725717): CastSocket created by one profile (browser context)
19 // could be shared with other profiles. 17 // could be shared with other profiles.
20 class CastSocketServiceFactory 18 class CastSocketServiceFactory
21 : public RefcountedBrowserContextKeyedServiceFactory { 19 : public RefcountedBrowserContextKeyedServiceFactory {
22 public: 20 public:
23 // Caller needs to make sure that it passes in the same |context| instance to 21 // Caller needs to make sure that it passes in the same |context| instance to
(...skipping 13 matching lines...) Expand all
37 content::BrowserContext* GetBrowserContextToUse( 35 content::BrowserContext* GetBrowserContextToUse(
38 content::BrowserContext* context) const override; 36 content::BrowserContext* context) const override;
39 37
40 scoped_refptr<RefcountedKeyedService> BuildServiceInstanceFor( 38 scoped_refptr<RefcountedKeyedService> BuildServiceInstanceFor(
41 content::BrowserContext* context) const override; 39 content::BrowserContext* context) const override;
42 40
43 DISALLOW_COPY_AND_ASSIGN(CastSocketServiceFactory); 41 DISALLOW_COPY_AND_ASSIGN(CastSocketServiceFactory);
44 }; 42 };
45 43
46 } // namespace cast_channel 44 } // namespace cast_channel
47 } // namespace api
48 } // namespace extensions
49 45
50 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_SERVICE_FACTORY_H_ 46 #endif // COMPONENTS_CAST_CHANNEL_CAST_SOCKET_SERVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « components/cast_channel/cast_socket_service.cc ('k') | components/cast_channel/cast_socket_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698