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

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

Issue 236203018: win: Implement Bluetooth server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 | « device/bluetooth/bluetooth_socket_win.cc ('k') | net/base/net_util.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // IPAddressNumber is used to represent an IP address's numeric value as an 45 // IPAddressNumber is used to represent an IP address's numeric value as an
46 // array of bytes, from most significant to least significant. This is the 46 // array of bytes, from most significant to least significant. This is the
47 // network byte ordering. 47 // network byte ordering.
48 // 48 //
49 // IPv4 addresses will have length 4, whereas IPv6 address will have length 16. 49 // IPv4 addresses will have length 4, whereas IPv6 address will have length 16.
50 typedef std::vector<unsigned char> IPAddressNumber; 50 typedef std::vector<unsigned char> IPAddressNumber;
51 typedef std::vector<IPAddressNumber> IPAddressList; 51 typedef std::vector<IPAddressNumber> IPAddressList;
52 52
53 static const size_t kIPv4AddressSize = 4; 53 static const size_t kIPv4AddressSize = 4;
54 static const size_t kIPv6AddressSize = 16; 54 static const size_t kIPv6AddressSize = 16;
55 #if defined(OS_WIN)
56 // Bluetooth address size. Windows Bluetooth is supported via winsock.
57 static const size_t kBluetoothAddressSize = 6;
58 #endif
55 59
56 // Nothing is ommitted. 60 // Nothing is ommitted.
57 NET_EXPORT extern const FormatUrlType kFormatUrlOmitNothing; 61 NET_EXPORT extern const FormatUrlType kFormatUrlOmitNothing;
58 62
59 // If set, any username and password are removed. 63 // If set, any username and password are removed.
60 NET_EXPORT extern const FormatUrlType kFormatUrlOmitUsernamePassword; 64 NET_EXPORT extern const FormatUrlType kFormatUrlOmitUsernamePassword;
61 65
62 // If the scheme is 'http://', it's removed. 66 // If the scheme is 'http://', it's removed.
63 NET_EXPORT extern const FormatUrlType kFormatUrlOmitHTTP; 67 NET_EXPORT extern const FormatUrlType kFormatUrlOmitHTTP;
64 68
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 DSCP_CS5 = 40, // Video 531 DSCP_CS5 = 40, // Video
528 DSCP_EF = 46, // Voice 532 DSCP_EF = 46, // Voice
529 DSCP_CS6 = 48, // Voice 533 DSCP_CS6 = 48, // Voice
530 DSCP_CS7 = 56, // Control messages 534 DSCP_CS7 = 56, // Control messages
531 DSCP_LAST = DSCP_CS7 535 DSCP_LAST = DSCP_CS7
532 }; 536 };
533 537
534 } // namespace net 538 } // namespace net
535 539
536 #endif // NET_BASE_NET_UTIL_H_ 540 #endif // NET_BASE_NET_UTIL_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_socket_win.cc ('k') | net/base/net_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698