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

Side by Side Diff: webrtc/examples/peerconnection/server/peer_channel.cc

Issue 2969623003: Update includes for webrtc/{base => rtc_base} rename (2/3) (Closed)
Patch Set: Rebased onto 224e65939af87443addfc5bb500fbf434728bd1c and restored sorting in clock.cc Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2011 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/examples/peerconnection/server/peer_channel.h" 11 #include "webrtc/examples/peerconnection/server/peer_channel.h"
12 12
13 #include <stdio.h> 13 #include <stdio.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 #include <string.h> 15 #include <string.h>
16 16
17 #include <algorithm> 17 #include <algorithm>
18 18
19 #include "webrtc/examples/peerconnection/server/data_socket.h" 19 #include "webrtc/examples/peerconnection/server/data_socket.h"
20 #include "webrtc/examples/peerconnection/server/utils.h" 20 #include "webrtc/examples/peerconnection/server/utils.h"
21 #include "webrtc/base/stringencode.h" 21 #include "webrtc/rtc_base/stringencode.h"
22 #include "webrtc/base/stringutils.h" 22 #include "webrtc/rtc_base/stringutils.h"
23 23
24 using rtc::sprintfn; 24 using rtc::sprintfn;
25 25
26 // Set to the peer id of the originator when messages are being 26 // Set to the peer id of the originator when messages are being
27 // exchanged between peers, but set to the id of the receiving peer 27 // exchanged between peers, but set to the id of the receiving peer
28 // itself when notifications are sent from the server about the state 28 // itself when notifications are sent from the server about the state
29 // of other peers. 29 // of other peers.
30 // 30 //
31 // WORKAROUND: Since support for CORS varies greatly from one browser to the 31 // WORKAROUND: Since support for CORS varies greatly from one browser to the
32 // next, we don't use a custom name for our peer-id header (originally it was 32 // next, we don't use a custom name for our peer-id header (originally it was
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 std::string response(member.GetEntry()); 355 std::string response(member.GetEntry());
356 for (Members::iterator i = members_.begin(); i != members_.end(); ++i) { 356 for (Members::iterator i = members_.begin(); i != members_.end(); ++i) {
357 if (member.id() != (*i)->id()) { 357 if (member.id() != (*i)->id()) {
358 assert((*i)->connected()); 358 assert((*i)->connected());
359 response += (*i)->GetEntry(); 359 response += (*i)->GetEntry();
360 } 360 }
361 } 361 }
362 362
363 return response; 363 return response;
364 } 364 }
OLDNEW
« no previous file with comments | « webrtc/examples/peerconnection/client/peer_connection_client.cc ('k') | webrtc/examples/peerconnection/server/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698