| 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_DNS_HOST_RESOLVER_H_ | 5 #ifndef NET_DNS_HOST_RESOLVER_H_ |
| 6 #define NET_DNS_HOST_RESOLVER_H_ | 6 #define NET_DNS_HOST_RESOLVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // required; the rest are optional (and have reasonable defaults). | 60 // required; the rest are optional (and have reasonable defaults). |
| 61 class NET_EXPORT RequestInfo { | 61 class NET_EXPORT RequestInfo { |
| 62 public: | 62 public: |
| 63 explicit RequestInfo(const HostPortPair& host_port_pair); | 63 explicit RequestInfo(const HostPortPair& host_port_pair); |
| 64 | 64 |
| 65 const HostPortPair& host_port_pair() const { return host_port_pair_; } | 65 const HostPortPair& host_port_pair() const { return host_port_pair_; } |
| 66 void set_host_port_pair(const HostPortPair& host_port_pair) { | 66 void set_host_port_pair(const HostPortPair& host_port_pair) { |
| 67 host_port_pair_ = host_port_pair; | 67 host_port_pair_ = host_port_pair; |
| 68 } | 68 } |
| 69 | 69 |
| 70 int port() const { return host_port_pair_.port(); } | 70 uint16 port() const { return host_port_pair_.port(); } |
| 71 const std::string& hostname() const { return host_port_pair_.host(); } | 71 const std::string& hostname() const { return host_port_pair_.host(); } |
| 72 | 72 |
| 73 AddressFamily address_family() const { return address_family_; } | 73 AddressFamily address_family() const { return address_family_; } |
| 74 void set_address_family(AddressFamily address_family) { | 74 void set_address_family(AddressFamily address_family) { |
| 75 address_family_ = address_family; | 75 address_family_ = address_family; |
| 76 } | 76 } |
| 77 | 77 |
| 78 HostResolverFlags host_resolver_flags() const { | 78 HostResolverFlags host_resolver_flags() const { |
| 79 return host_resolver_flags_; | 79 return host_resolver_flags_; |
| 80 } | 80 } |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 protected: | 198 protected: |
| 199 HostResolver(); | 199 HostResolver(); |
| 200 | 200 |
| 201 private: | 201 private: |
| 202 DISALLOW_COPY_AND_ASSIGN(HostResolver); | 202 DISALLOW_COPY_AND_ASSIGN(HostResolver); |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 } // namespace net | 205 } // namespace net |
| 206 | 206 |
| 207 #endif // NET_DNS_HOST_RESOLVER_H_ | 207 #endif // NET_DNS_HOST_RESOLVER_H_ |
| OLD | NEW |