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

Unified Diff: content/renderer/p2p/socket_client.h

Issue 759923003: Detect situation when there is no missing send completion signal in P2PSocket implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « content/renderer/p2p/ipc_socket_factory.cc ('k') | content/renderer/p2p/socket_client_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/p2p/socket_client.h
diff --git a/content/renderer/p2p/socket_client.h b/content/renderer/p2p/socket_client.h
index d92407cd5c9bf1e6fa83564e8d642449d06c0028..a2cefdcc4c25bae0017c4291f79c75671930c4ad 100644
--- a/content/renderer/p2p/socket_client.h
+++ b/content/renderer/p2p/socket_client.h
@@ -36,15 +36,11 @@ class P2PSocketClient : public base::RefCountedThreadSafe<P2PSocketClient> {
P2PSocketClient() {}
- // Send the |data| to the |address|.
- virtual void Send(const net::IPEndPoint& address,
- const std::vector<char>& data) = 0;
-
// Send the |data| to the |address| using Differentiated Services Code Point
- // |dscp|.
- virtual void SendWithDscp(const net::IPEndPoint& address,
- const std::vector<char>& data,
- const rtc::PacketOptions& options) = 0;
+ // |dscp|. Return value is the unique packet_id for this packet.
+ virtual uint64_t Send(const net::IPEndPoint& address,
+ const std::vector<char>& data,
+ const rtc::PacketOptions& options) = 0;
virtual void SetOption(P2PSocketOption option, int value) = 0;
« no previous file with comments | « content/renderer/p2p/ipc_socket_factory.cc ('k') | content/renderer/p2p/socket_client_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698