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

Side by Side Diff: webrtc/base/network.h

Issue 1556743002: Bind a socket to a network if the network handle is set. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix a compiling issue for Windows Created 4 years, 11 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 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // Updates the networks and reschedules the next update. 248 // Updates the networks and reschedules the next update.
249 void UpdateNetworksContinually(); 249 void UpdateNetworksContinually();
250 // Only updates the networks; does not reschedule the next update. 250 // Only updates the networks; does not reschedule the next update.
251 void UpdateNetworksOnce(); 251 void UpdateNetworksOnce();
252 252
253 Thread* thread_; 253 Thread* thread_;
254 bool sent_first_update_; 254 bool sent_first_update_;
255 int start_count_; 255 int start_count_;
256 std::vector<std::string> network_ignore_list_; 256 std::vector<std::string> network_ignore_list_;
257 bool ignore_non_default_routes_; 257 bool ignore_non_default_routes_;
258 scoped_ptr<NetworkMonitorInterface> network_monitor_; 258 NetworkMonitorInterface* network_monitor_ = nullptr;
259 }; 259 };
260 260
261 // Represents a Unix-type network interface, with a name and single address. 261 // Represents a Unix-type network interface, with a name and single address.
262 class Network { 262 class Network {
263 public: 263 public:
264 Network(const std::string& name, 264 Network(const std::string& name,
265 const std::string& description, 265 const std::string& description,
266 const IPAddress& prefix, 266 const IPAddress& prefix,
267 int prefix_length); 267 int prefix_length);
268 268
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 AdapterType type_; 368 AdapterType type_;
369 int preference_; 369 int preference_;
370 bool active_ = true; 370 bool active_ = true;
371 371
372 friend class NetworkManager; 372 friend class NetworkManager;
373 }; 373 };
374 374
375 } // namespace rtc 375 } // namespace rtc
376 376
377 #endif // WEBRTC_BASE_NETWORK_H_ 377 #endif // WEBRTC_BASE_NETWORK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698