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

Side by Side Diff: net/base/net_util.h

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 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 | Annotate | Revision Log
« no previous file with comments | « net/base/mock_file_stream.h ('k') | net/base/network_change_notifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/base/mock_file_stream.h ('k') | net/base/network_change_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698