OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_BASE_NET_UTIL_H_ | 5 #ifndef NET_BASE_NET_UTIL_H_ |
6 #define NET_BASE_NET_UTIL_H_ | 6 #define NET_BASE_NET_UTIL_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 | 379 |
380 // Strip the portions of |url| that aren't core to the network request. | 380 // Strip the portions of |url| that aren't core to the network request. |
381 // - user name / password | 381 // - user name / password |
382 // - reference section | 382 // - reference section |
383 NET_EXPORT_PRIVATE GURL SimplifyUrlForRequest(const GURL& url); | 383 NET_EXPORT_PRIVATE GURL SimplifyUrlForRequest(const GURL& url); |
384 | 384 |
385 NET_EXPORT void SetExplicitlyAllowedPorts(const std::string& allowed_ports); | 385 NET_EXPORT void SetExplicitlyAllowedPorts(const std::string& allowed_ports); |
386 | 386 |
387 class NET_EXPORT ScopedPortException { | 387 class NET_EXPORT ScopedPortException { |
388 public: | 388 public: |
389 ScopedPortException(int port); | 389 explicit ScopedPortException(int port); |
390 ~ScopedPortException(); | 390 ~ScopedPortException(); |
391 | 391 |
392 private: | 392 private: |
393 int port_; | 393 int port_; |
394 | 394 |
395 DISALLOW_COPY_AND_ASSIGN(ScopedPortException); | 395 DISALLOW_COPY_AND_ASSIGN(ScopedPortException); |
396 }; | 396 }; |
397 | 397 |
398 // These are used for UMA histograms. Any new values must be added to the end. | 398 // These are used for UMA histograms. Any new values must be added to the end. |
399 enum IPv6SupportStatus { | 399 enum IPv6SupportStatus { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 | 511 |
512 // Returns list of network interfaces except loopback interface. If an | 512 // Returns list of network interfaces except loopback interface. If an |
513 // interface has more than one address, a separate entry is added to | 513 // interface has more than one address, a separate entry is added to |
514 // the list for each address. | 514 // the list for each address. |
515 // Can be called only on a thread that allows IO. | 515 // Can be called only on a thread that allows IO. |
516 NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks); | 516 NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks); |
517 | 517 |
518 } // namespace net | 518 } // namespace net |
519 | 519 |
520 #endif // NET_BASE_NET_UTIL_H_ | 520 #endif // NET_BASE_NET_UTIL_H_ |
OLD | NEW |