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

Unified Diff: components/cast_channel/cast_socket_service.h

Issue 2913033003: [cast_channel] Move cast_channel related files from //extensions to //components (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 side-by-side diff with in-line comments
Download patch
Index: components/cast_channel/cast_socket_service.h
diff --git a/extensions/browser/api/cast_channel/cast_socket_service.h b/components/cast_channel/cast_socket_service.h
similarity index 85%
rename from extensions/browser/api/cast_channel/cast_socket_service.h
rename to components/cast_channel/cast_socket_service.h
index 6765c15160381946da7b10f38362f2dd160dccc8..94a274e2492c9a4311acde8076b8765277f0298d 100644
--- a/extensions/browser/api/cast_channel/cast_socket_service.h
+++ b/components/cast_channel/cast_socket_service.h
@@ -2,20 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_SERVICE_H_
-#define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_SERVICE_H_
+#ifndef COMPONENTS_CAST_CHANNEL_CAST_CHANNEL_SERVICE_H_
+#define COMPONENTS_CAST_CHANNEL_CAST_CHANNEL_SERVICE_H_
#include <map>
#include <memory>
#include "base/macros.h"
#include "base/threading/thread_checker.h"
+#include "components/cast_channel/cast_socket.h"
#include "components/keyed_service/core/keyed_service.h"
#include "content/public/browser/browser_thread.h"
-#include "extensions/browser/api/cast_channel/cast_socket.h"
-namespace extensions {
-namespace api {
namespace cast_channel {
// This class adds, removes, and returns cast sockets created by CastChannelAPI
@@ -23,6 +21,8 @@ namespace cast_channel {
// This class is not thread safe. All methods must be called from the IO thread.
class CastSocketRegistry {
public:
+ using CastSocket = ::cast_channel::CastSocket;
+
CastSocketRegistry();
~CastSocketRegistry();
@@ -71,7 +71,5 @@ class CastSocketService : public KeyedService {
};
} // namespace cast_channel
-} // namespace api
-} // namespace extensions
-#endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_SERVICE_H_
+#endif // COMPONENTS_CAST_CHANNEL_CAST_CHANNEL_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698