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

Unified Diff: chrome/renderer/media/cast_udp_transport.h

Issue 26931002: Define Cast Content API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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
« no previous file with comments | « chrome/renderer/media/cast_send_transport.cc ('k') | chrome/renderer/media/cast_udp_transport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/cast_udp_transport.h
diff --git a/chrome/renderer/media/cast_udp_transport.h b/chrome/renderer/media/cast_udp_transport.h
new file mode 100644
index 0000000000000000000000000000000000000000..f12424272bcb6c2ce16d76177f53ee12207f5190
--- /dev/null
+++ b/chrome/renderer/media/cast_udp_transport.h
@@ -0,0 +1,30 @@
+// Copyright 2013 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 CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_
+#define CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_
+
+#include "base/basictypes.h"
+#include "net/base/ip_endpoint.h"
+
+// This class represents an end point to which communication is done by
+// UDP. The interface does not allow direct access to a UDP socket but
+// represents a transport mechanism.
+class CastUdpTransport {
+ public:
+ CastUdpTransport();
+ ~CastUdpTransport();
+
+ // Begin the transport by specifying the remote IP address.
+ // The transport will use UDP.
+ void Start(net::IPEndPoint remote_address);
+
+ // Terminate the communication with the end point.
+ void Stop();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CastUdpTransport);
+};
+
+#endif // CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_
« no previous file with comments | « chrome/renderer/media/cast_send_transport.cc ('k') | chrome/renderer/media/cast_udp_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698