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

Unified Diff: content/browser/renderer_host/p2p/socket_host_udp.cc

Issue 7604014: Renamed authorized_ to connected_ for p2p sockets host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comments Created 9 years, 4 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 | « content/browser/renderer_host/p2p/socket_host_udp.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/p2p/socket_host_udp.cc
diff --git a/content/browser/renderer_host/p2p/socket_host_udp.cc b/content/browser/renderer_host/p2p/socket_host_udp.cc
index a606ebcb0ea8d436fc002a4cd0a5e7d6d22e8847..e03af8e5731adf43f2cf99d344e64219358bf27e 100644
--- a/content/browser/renderer_host/p2p/socket_host_udp.cc
+++ b/content/browser/renderer_host/p2p/socket_host_udp.cc
@@ -97,11 +97,11 @@ void P2PSocketHostUdp::DidCompleteRead(int result) {
if (result > 0) {
std::vector<char> data(recv_buffer_->data(), recv_buffer_->data() + result);
- if (authorized_peers_.find(recv_address_) == authorized_peers_.end()) {
+ if (connected_peers_.find(recv_address_) == connected_peers_.end()) {
P2PSocketHost::StunMessageType type;
bool stun = GetStunPacketType(&*data.begin(), data.size(), &type);
if (stun && IsRequestOrResponse(type)) {
- authorized_peers_.insert(recv_address_);
+ connected_peers_.insert(recv_address_);
} else if (!stun || type == STUN_DATA_INDICATION) {
LOG(ERROR) << "Received unexpected data packet from "
<< recv_address_.ToString()
@@ -132,7 +132,7 @@ void P2PSocketHostUdp::Send(const net::IPEndPoint& to,
return;
}
- if (authorized_peers_.find(to) == authorized_peers_.end()) {
+ if (connected_peers_.find(to) == connected_peers_.end()) {
P2PSocketHost::StunMessageType type;
bool stun = GetStunPacketType(&*data.begin(), data.size(), &type);
if (!stun || type == STUN_DATA_INDICATION) {
« no previous file with comments | « content/browser/renderer_host/p2p/socket_host_udp.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698