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

Side by Side Diff: webrtc/p2p/stunprober/stunprober.cc

Issue 1345433002: Add RTC_ prefix to contructormagic macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Formatting fix. Created 5 years, 3 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
« no previous file with comments | « webrtc/p2p/stunprober/stunprober.h ('k') | webrtc/sound/alsasoundsystem.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2015 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 rtc::SocketAddress addr_; 95 rtc::SocketAddress addr_;
96 rtc::scoped_ptr<rtc::ByteBuffer> response_packet_; 96 rtc::scoped_ptr<rtc::ByteBuffer> response_packet_;
97 97
98 std::vector<Request*> requests_; 98 std::vector<Request*> requests_;
99 std::vector<rtc::SocketAddress> server_ips_; 99 std::vector<rtc::SocketAddress> server_ips_;
100 int16 num_request_sent_ = 0; 100 int16 num_request_sent_ = 0;
101 int16 num_response_received_ = 0; 101 int16 num_response_received_ = 0;
102 102
103 rtc::ThreadChecker& thread_checker_; 103 rtc::ThreadChecker& thread_checker_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(Requester); 105 RTC_DISALLOW_COPY_AND_ASSIGN(Requester);
106 }; 106 };
107 107
108 StunProber::Requester::Requester( 108 StunProber::Requester::Requester(
109 StunProber* prober, 109 StunProber* prober,
110 rtc::AsyncPacketSocket* socket, 110 rtc::AsyncPacketSocket* socket,
111 const std::vector<rtc::SocketAddress>& server_ips) 111 const std::vector<rtc::SocketAddress>& server_ips)
112 : prober_(prober), 112 : prober_(prober),
113 socket_(socket), 113 socket_(socket),
114 response_packet_(new rtc::ByteBuffer(nullptr, kMaxUdpBufferSize)), 114 response_packet_(new rtc::ByteBuffer(nullptr, kMaxUdpBufferSize)),
115 server_ips_(server_ips), 115 server_ips_(server_ips),
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 if (!finished_callback_.empty()) { 525 if (!finished_callback_.empty()) {
526 AsyncCallback callback = finished_callback_; 526 AsyncCallback callback = finished_callback_;
527 finished_callback_ = AsyncCallback(); 527 finished_callback_ = AsyncCallback();
528 528
529 // Callback at the last since the prober might be deleted in the callback. 529 // Callback at the last since the prober might be deleted in the callback.
530 callback(this, status); 530 callback(this, status);
531 } 531 }
532 } 532 }
533 533
534 } // namespace stunprober 534 } // namespace stunprober
OLDNEW
« no previous file with comments | « webrtc/p2p/stunprober/stunprober.h ('k') | webrtc/sound/alsasoundsystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698