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

Unified Diff: extensions/browser/api/cast_channel/cast_transport.h

Issue 2891923004: [cast_channel] Make cast_channel related files not depend on "cast_channel.h" (Closed)
Patch Set: fix windows compile errors 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: extensions/browser/api/cast_channel/cast_transport.h
diff --git a/extensions/browser/api/cast_channel/cast_transport.h b/extensions/browser/api/cast_channel/cast_transport.h
index d4e5805254641b7e9ec22080c2d7c3d33cfc52b0..fec2434c0e3d76104ecbcc679d8b340eaeec3223 100644
--- a/extensions/browser/api/cast_channel/cast_transport.h
+++ b/extensions/browser/api/cast_channel/cast_transport.h
@@ -12,8 +12,8 @@
#include "base/memory/ref_counted.h"
#include "base/threading/non_thread_safe.h"
#include "base/threading/thread_checker.h"
+#include "components/cast_channel/cast_channel_enum.h"
#include "extensions/browser/api/cast_channel/logger.h"
-#include "extensions/common/api/cast_channel.h"
#include "extensions/common/api/cast_channel/logging.pb.h"
#include "net/base/completion_callback.h"
#include "net/base/ip_endpoint.h"
@@ -38,6 +38,8 @@ class CastTransport {
// Object to be informed of incoming messages and read errors.
class Delegate {
public:
+ using ChannelError = ::cast_channel::ChannelError;
+
virtual ~Delegate() {}
// Called once Transport is successfully initialized and started.
@@ -74,6 +76,9 @@ class CastTransport {
// Manager class for reading and writing messages to/from a socket.
class CastTransportImpl : public CastTransport, public base::NonThreadSafe {
public:
+ using ChannelAuthType = ::cast_channel::ChannelAuthType;
+ using ChannelError = ::cast_channel::ChannelError;
+
// Adds a CastMessage read/write layer to a socket.
// Message read events are propagated to the owner via |read_delegate|.
// |vlog_prefix| sets the prefix used for all VLOGged output.
« no previous file with comments | « extensions/browser/api/cast_channel/cast_socket_unittest.cc ('k') | extensions/browser/api/cast_channel/cast_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698