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

Side by Side Diff: content/browser/renderer_host/p2p/socket_dispatcher_host.cc

Issue 7342047: Cleanup base/stl_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unneeded include + rebase Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" 5 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h"
6 6
7 #include "base/stl_util-inl.h" 7 #include "base/stl_util.h"
8 #include "content/browser/renderer_host/p2p/socket_host.h" 8 #include "content/browser/renderer_host/p2p/socket_host.h"
9 #include "content/common/p2p_messages.h" 9 #include "content/common/p2p_messages.h"
10 10
11 P2PSocketDispatcherHost::P2PSocketDispatcherHost() 11 P2PSocketDispatcherHost::P2PSocketDispatcherHost()
12 : monitoring_networks_(false) { 12 : monitoring_networks_(false) {
13 } 13 }
14 14
15 P2PSocketDispatcherHost::~P2PSocketDispatcherHost() { 15 P2PSocketDispatcherHost::~P2PSocketDispatcherHost() {
16 DCHECK(sockets_.empty()); 16 DCHECK(sockets_.empty());
17 17
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 int socket_id) { 158 int socket_id) {
159 SocketsMap::iterator it = sockets_.find( 159 SocketsMap::iterator it = sockets_.find(
160 ExtendedSocketId(msg.routing_id(), socket_id)); 160 ExtendedSocketId(msg.routing_id(), socket_id));
161 if (it != sockets_.end()) { 161 if (it != sockets_.end()) {
162 delete it->second; 162 delete it->second;
163 sockets_.erase(it); 163 sockets_.erase(it);
164 } else { 164 } else {
165 LOG(ERROR) << "Received P2PHostMsg_DestroySocket for invalid socket_id."; 165 LOG(ERROR) << "Received P2PHostMsg_DestroySocket for invalid socket_id.";
166 } 166 }
167 } 167 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698