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

Unified Diff: components/cast_channel/cast_socket_service_factory.h

Issue 2926313002: Revert of [cast_channel] Move cast_channel related files from //extensions to //components (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: components/cast_channel/cast_socket_service_factory.h
diff --git a/components/cast_channel/cast_socket_service_factory.h b/components/cast_channel/cast_socket_service_factory.h
deleted file mode 100644
index f3824c77649cb4f7df983c7b1cb8792c92419fb8..0000000000000000000000000000000000000000
--- a/components/cast_channel/cast_socket_service_factory.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_CAST_CHANNEL_CAST_SOCKET_SERVICE_FACTORY_H_
-#define COMPONENTS_CAST_CHANNEL_CAST_SOCKET_SERVICE_FACTORY_H_
-
-#include "base/lazy_instance.h"
-#include "base/macros.h"
-#include "components/keyed_service/content/refcounted_browser_context_keyed_service_factory.h"
-
-namespace cast_channel {
-
-class CastSocketService;
-
-// TODO(crbug.com/725717): CastSocket created by one profile (browser context)
-// could be shared with other profiles.
-class CastSocketServiceFactory
- : public RefcountedBrowserContextKeyedServiceFactory {
- public:
- // Caller needs to make sure that it passes in the same |context| instance to
- // this function for both normal profile and incognito profile.
- static scoped_refptr<CastSocketService> GetForBrowserContext(
- content::BrowserContext* context);
-
- static CastSocketServiceFactory* GetInstance();
-
- private:
- friend struct base::LazyInstanceTraitsBase<CastSocketServiceFactory>;
-
- CastSocketServiceFactory();
- ~CastSocketServiceFactory() override;
-
- // BrowserContextKeyedServiceFactory interface.
- content::BrowserContext* GetBrowserContextToUse(
- content::BrowserContext* context) const override;
-
- scoped_refptr<RefcountedKeyedService> BuildServiceInstanceFor(
- content::BrowserContext* context) const override;
-
- DISALLOW_COPY_AND_ASSIGN(CastSocketServiceFactory);
-};
-
-} // namespace cast_channel
-
-#endif // COMPONENTS_CAST_CHANNEL_CAST_SOCKET_SERVICE_FACTORY_H_
« 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