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

Side by Side Diff: webrtc/examples/peerconnection/client/peer_connection_client.cc

Issue 1504283004: Enable cpplint for webrtc/examples and fix all uncovered cpplint errors. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add "henrike" to TODO markers Created 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2012 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
(...skipping 25 matching lines...) Expand all
36 return sock; 36 return sock;
37 #elif defined(WEBRTC_POSIX) 37 #elif defined(WEBRTC_POSIX)
38 rtc::Thread* thread = rtc::Thread::Current(); 38 rtc::Thread* thread = rtc::Thread::Current();
39 ASSERT(thread != NULL); 39 ASSERT(thread != NULL);
40 return thread->socketserver()->CreateAsyncSocket(family, SOCK_STREAM); 40 return thread->socketserver()->CreateAsyncSocket(family, SOCK_STREAM);
41 #else 41 #else
42 #error Platform not supported. 42 #error Platform not supported.
43 #endif 43 #endif
44 } 44 }
45 45
46 } 46 } // namespace
47 47
48 PeerConnectionClient::PeerConnectionClient() 48 PeerConnectionClient::PeerConnectionClient()
49 : callback_(NULL), 49 : callback_(NULL),
50 resolver_(NULL), 50 resolver_(NULL),
51 state_(NOT_CONNECTED), 51 state_(NOT_CONNECTED),
52 my_id_(-1) { 52 my_id_(-1) {
53 } 53 }
54 54
55 PeerConnectionClient::~PeerConnectionClient() { 55 PeerConnectionClient::~PeerConnectionClient() {
56 } 56 }
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 Close(); 505 Close();
506 callback_->OnDisconnected(); 506 callback_->OnDisconnected();
507 } 507 }
508 } 508 }
509 } 509 }
510 510
511 void PeerConnectionClient::OnMessage(rtc::Message* msg) { 511 void PeerConnectionClient::OnMessage(rtc::Message* msg) {
512 // ignore msg; there is currently only one supported message ("retry") 512 // ignore msg; there is currently only one supported message ("retry")
513 DoConnect(); 513 DoConnect();
514 } 514 }
OLDNEW
« no previous file with comments | « webrtc/examples/peerconnection/client/peer_connection_client.h ('k') | webrtc/examples/peerconnection/server/data_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698