OLD | NEW |
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 |
11 #include <iostream> | |
12 #include <map> | 11 #include <map> |
13 #include <set> | 12 #include <set> |
14 #include <string> | 13 #include <string> |
15 | 14 |
16 #include "webrtc/base/asyncpacketsocket.h" | 15 #include "webrtc/base/asyncpacketsocket.h" |
17 #include "webrtc/base/asyncresolverinterface.h" | 16 #include "webrtc/base/asyncresolverinterface.h" |
18 #include "webrtc/base/bind.h" | 17 #include "webrtc/base/bind.h" |
19 #include "webrtc/base/checks.h" | 18 #include "webrtc/base/checks.h" |
20 #include "webrtc/base/helpers.h" | 19 #include "webrtc/base/helpers.h" |
21 #include "webrtc/base/logging.h" | 20 #include "webrtc/base/logging.h" |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 if (!finished_callback_.empty()) { | 525 if (!finished_callback_.empty()) { |
527 AsyncCallback callback = finished_callback_; | 526 AsyncCallback callback = finished_callback_; |
528 finished_callback_ = AsyncCallback(); | 527 finished_callback_ = AsyncCallback(); |
529 | 528 |
530 // 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. |
531 callback(this, status); | 530 callback(this, status); |
532 } | 531 } |
533 } | 532 } |
534 | 533 |
535 } // namespace stunprober | 534 } // namespace stunprober |
OLD | NEW |