HomeSort by relevance Sort by last modified time
    Searched refs:host_port (Results 1 - 25 of 51) sorted by null

1 2 3

  /external/chromium/net/base/
host_mapping_rules_unittest.cc 19 HostPortPair host_port("test", 1234);
20 EXPECT_FALSE(rules.RewriteHost(&host_port));
21 EXPECT_EQ("test", host_port.host());
22 EXPECT_EQ(1234u, host_port.port());
24 host_port = HostPortPair("chrome.net", 80);
25 EXPECT_TRUE(rules.RewriteHost(&host_port));
26 EXPECT_EQ("bar", host_port.host());
27 EXPECT_EQ(60u, host_port.port());
29 host_port = HostPortPair("crack.com", 80);
30 EXPECT_TRUE(rules.RewriteHost(&host_port));
    [all...]
mapped_host_resolver.cc 28 HostPortPair host_port(info.host_port_pair());
29 if (rules_.RewriteHost(&host_port))
30 modified_info.set_host_port_pair(host_port);
host_mapping_rules.cc 32 bool HostMappingRules::RewriteHost(HostPortPair* host_port) const {
37 if (MatchPattern(host_port->host(), rule.hostname_pattern))
53 if (!MatchPattern(host_port->host(), rule.hostname_pattern)) {
54 std::string host_port_string = host_port->ToString();
59 host_port->set_host(rule.replacement_hostname);
61 host_port->set_port(rule.replacement_port);
host_mapping_rules.h 22 // Modifies |*host_port| based on the current rules. Returns true if the
24 bool RewriteHost(HostPortPair* host_port) const;
  /external/chromium_org/net/base/
host_mapping_rules_unittest.cc 19 HostPortPair host_port("test", 1234);
20 EXPECT_FALSE(rules.RewriteHost(&host_port));
21 EXPECT_EQ("test", host_port.host());
22 EXPECT_EQ(1234u, host_port.port());
24 host_port = HostPortPair("chrome.net", 80);
25 EXPECT_TRUE(rules.RewriteHost(&host_port));
26 EXPECT_EQ("bar", host_port.host());
27 EXPECT_EQ(60u, host_port.port());
29 host_port = HostPortPair("crack.com", 80);
30 EXPECT_TRUE(rules.RewriteHost(&host_port));
    [all...]
host_mapping_rules.cc 32 bool HostMappingRules::RewriteHost(HostPortPair* host_port) const {
37 if (MatchPattern(host_port->host(), rule.hostname_pattern))
53 if (!MatchPattern(host_port->host(), rule.hostname_pattern)) {
54 std::string host_port_string = host_port->ToString();
59 host_port->set_host(rule.replacement_hostname);
61 host_port->set_port(rule.replacement_port);
host_mapping_rules.h 22 // Modifies |*host_port| based on the current rules. Returns true if the
24 bool RewriteHost(HostPortPair* host_port) const;
  /external/chromium_org/ppapi/proxy/
host_resolver_resource_base.cc 64 HostPortPair host_port; local
65 host_port.host = host;
66 host_port.port = port;
68 SendResolve(host_port, hint);
117 const HostPortPair& host_port,
119 PpapiHostMsg_HostResolver_Resolve msg(host_port, *hint);
host_resolver_resource_base.h 53 void SendResolve(const HostPortPair& host_port,
  /external/chromium_org/net/dns/
mapped_host_resolver.cc 54 HostPortPair host_port(info->host_port_pair());
55 if (rules_.RewriteHost(&host_port)) {
56 if (host_port.host() == "~NOTFOUND")
58 info->set_host_port_pair(host_port);
  /external/chromium_org/tools/android/forwarder2/
host_controller.h 40 int host_port,
56 int host_port,
host_forwarder_main.cc 106 int host_port,
114 base::Unretained(this), device_serial, device_port, host_port,
159 int host_port,
180 if (host_port < 0) {
190 << " to host port " << host_port; local
191 SendMessage(base::StringPrintf("%d:%d", device_port, host_port),
199 device_port, host_port, adb_port, GetExitNotifierFD(),
210 << host_port; local
211 const std::string msg = base::StringPrintf("%d:%d", device_port, host_port);
295 int host_port; variable
    [all...]
host_controller.cc 22 int host_port,
50 device_port_allocated, host_port, adb_port, exit_notifier_fd,
72 int host_port,
79 host_port_(host_port),
  /external/qemu/slirp/
libslirp.h 25 int slirp_redir_rm(int is_udp, int host_port);
26 int slirp_redir(int is_udp, int host_port,
  /external/qemu/
migration.h 64 int exec_start_incoming_migration(const char *host_port);
66 MigrationState *exec_start_outgoing_migration(const char *host_port,
70 int tcp_start_incoming_migration(const char *host_port);
72 MigrationState *tcp_start_outgoing_migration(const char *host_port,
migration-tcp-android.c 71 MigrationState *tcp_start_outgoing_migration(const char *host_port,
79 if (parse_host_port(&addr, host_port) < 0)
167 int tcp_start_incoming_migration(const char *host_port)
172 if (parse_host_port(&addr, host_port) < 0) {
173 fprintf(stderr, "invalid host/port combination: %s\n", host_port);
migration-tcp.c 79 MigrationState *tcp_start_outgoing_migration(const char *host_port,
87 if (parse_host_port(&addr, host_port) < 0)
179 int tcp_start_incoming_migration(const char *host_port)
185 if (parse_host_port(&addr, host_port) < 0) {
186 fprintf(stderr, "invalid host/port combination: %s\n", host_port);
  /external/chromium/net/http/
http_stream_factory.cc 74 HostPortPair host_port(http_host_port_pair);
75 host_mapping_rules().RewriteHost(&host_port);
77 if (alternate_protocols->HasAlternateProtocolFor(host_port)) {
79 alternate_protocols->GetAlternateProtocolFor(host_port);
85 alternate_protocols->SetAlternateProtocolFor(host_port, port, protocol);
  /external/qemu/slirp-android/
libslirp.h 101 int slirp_redir_rm(int is_udp, int host_port);
102 int slirp_redir(int is_udp, int host_port,
105 int slirp_unredir(int is_udp, int host_port);
  /external/chromium_org/content/browser/renderer_host/pepper/
pepper_host_resolver_message_filter.h 59 const ppapi::HostPortPair& host_port,
65 const ppapi::HostPortPair& host_port,
pepper_host_resolver_message_filter.cc 123 const ppapi::HostPortPair& host_port,
129 SocketPermissionRequest::RESOLVE_HOST, host_port.host, host_port.port);
152 host_port,
160 const ppapi::HostPortPair& host_port,
172 net::HostPortPair(host_port.host, host_port.port));
  /external/chromium_org/build/android/pylib/
chrome_test_server_spawner.py 123 self.host_port = self.arguments['port']
124 assert isinstance(self.host_port, int)
137 by self.pipe_out. It is written as a result to |self.host_port|.
142 assert self.host_port == 0 and self.pipe_out and self.pipe_in
168 self.host_port = port_json['port']
169 return _CheckPortStatus(self.host_port, True)
185 self.command_line.append('--port=%d' % self.host_port)
188 if self.host_port == 0:
252 self.is_ready = _CheckPortStatus(self.host_port, True)
254 Forwarder.Map([(0, self.host_port)], self.adb, self.build_type, self.tool
    [all...]
forwarder.py 71 port_pairs: A list of tuples (device_port, host_port) to forward. Note
110 'expected "device_port:host_port"') % output)
112 host_port = int(tokens[1])
114 instance._device_to_host_port_map[serial_with_port] = host_port
115 instance._host_to_device_port_map[host_port] = serial_with_port
117 device_port, host_port)
136 port_pairs: A list of tuples (device_port, host_port) to unmap.
147 def DevicePortForHostPort(host_port):
151 None, None)._host_to_device_port_map.get(host_port)
216 host_port = instance._device_to_host_port_map[serial_with_port
    [all...]
  /external/chromium_org/chrome/browser/local_discovery/
privet_http_impl.cc 39 privet_client_->host_port().host().c_str(),
40 privet_client_->host_port().port());
171 privet_client_->host_port().host().c_str(),
172 privet_client_->host_port().port(),
265 const net::HostPortPair& host_port,
268 host_port_(host_port) {
  /external/chromium_org/net/http/
http_stream_factory.cc 86 HostPortPair host_port(http_host_port_pair);
89 mapping_rules->RewriteHost(&host_port);
91 if (http_server_properties->HasAlternateProtocol(host_port)) {
93 http_server_properties->GetAlternateProtocol(host_port);
99 http_server_properties->SetAlternateProtocol(host_port, port, protocol);

Completed in 570 milliseconds

1 2 3