Searched refs:host_port (Results 1 - 25 of 43) sorted by relevance

12

/external/chromium_org/net/base/
H A Dhost_mapping_rules_unittest.cc19 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...]
H A Dhost_mapping_rules.cc32 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);
H A Dhost_mapping_rules.h22 // Modifies |*host_port| based on the current rules. Returns true if
23 // |*host_port| was modified, false otherwise.
24 bool RewriteHost(HostPortPair* host_port) const;
/external/chromium_org/tools/telemetry/telemetry/core/forwarders/
H A D__init__.py39 def host_port(self): member in class:Forwarder
48 assert self.host_ip and self.host_port
49 return 'http://%s:%i' % (self.host_ip, self.host_port)
H A Dcros_forwarder.py53 lambda: self._cri.IsHTTPServerRunningOnPort(self.host_port), 60)
54 logging.debug('Server started on %s:%d', self.host_ip, self.host_port)
57 def host_port(self): member in class:CrOsSshForwarder
/external/chromium_org/ppapi/proxy/
H A Dhost_resolver_resource_base.cc46 HostPortPair host_port; local
47 host_port.host = host;
48 host_port.port = port;
50 SendResolve(host_port, hint);
100 const HostPortPair& host_port,
102 PpapiHostMsg_HostResolver_Resolve msg(host_port, *hint);
99 SendResolve( const HostPortPair& host_port, const PP_HostResolver_Private_Hint* hint) argument
H A Dhost_resolver_resource_base.h53 void SendResolve(const HostPortPair& host_port,
/external/chromium_org/net/dns/
H A Dmapped_host_resolver.cc63 HostPortPair host_port(info->host_port_pair());
64 if (rules_.RewriteHost(&host_port)) {
65 if (host_port.host() == "~NOTFOUND")
67 info->set_host_port_pair(host_port);
/external/chromium_org/net/http/
H A Dhttp_stream_factory.cc88 HostPortPair host_port(http_host_port_pair);
91 mapping_rules->RewriteHost(&host_port);
93 if (http_server_properties->HasAlternateProtocol(host_port)) {
95 http_server_properties->GetAlternateProtocol(host_port);
101 http_server_properties->SetAlternateProtocol(host_port, port, protocol,
/external/chromium_org/chrome/browser/local_discovery/
H A Dprivet_http_asynchronous_factory_mac.cc31 const net::HostPortPair& host_port,
35 host_port_(host_port),
28 ResolutionMac( net::URLRequestContextGetter* request_context, const std::string& name, const net::HostPortPair& host_port, const ResultCallback& callback) argument
H A Dprivet_http_asynchronous_factory_mac.h29 const net::HostPortPair& host_port,
/external/chromium_org/tools/android/forwarder2/
H A Dhost_controller.h42 int host_port,
58 int host_port,
H A Dhost_forwarder_main.cc106 int host_port,
114 base::Unretained(this), device_serial, device_port, host_port,
160 int host_port,
183 if (host_port < 0) {
193 << " to host port " << host_port; local
194 SendMessage(base::StringPrintf("%d:%d", device_port, host_port),
202 device_port, host_port, adb_port, GetExitNotifierFD(),
213 << host_port; local
214 const std::string msg = base::StringPrintf("%d:%d", device_port, host_port);
341 int host_port; variable
104 HandleRequest(const std::string& device_serial, int device_port, int host_port, scoped_ptr<Socket> client_socket) argument
158 HandleRequestOnInternalThread(const std::string& device_serial, int device_port, int host_port, scoped_ptr<Socket> client_socket) argument
[all...]
H A Dhost_controller.cc23 int host_port,
51 device_port_allocated, host_port, adb_port, exit_notifier_fd,
69 int host_port,
77 host_port_(host_port),
21 Create( int device_port, int host_port, int adb_port, int exit_notifier_fd, const ErrorCallback& error_callback) argument
67 HostController( int device_port, int host_port, int adb_port, int exit_notifier_fd, const ErrorCallback& error_callback, scoped_ptr<Socket> adb_control_socket, scoped_ptr<PipeNotifier> delete_controller_notifier) argument
/external/qemu/slirp/
H A Dlibslirp.h25 int slirp_redir_rm(int is_udp, int host_port);
26 int slirp_redir(int is_udp, int host_port,
/external/qemu/include/migration/
H A Dmigration.h64 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,
/external/qemu/slirp-android/
H A Dlibslirp.h101 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/
H A Dpepper_host_resolver_message_filter.h59 const ppapi::HostPortPair& host_port,
65 const ppapi::HostPortPair& host_port,
H A Dpepper_host_resolver_message_filter.cc119 const ppapi::HostPortPair& host_port,
125 SocketPermissionRequest::RESOLVE_HOST, host_port.host, host_port.port);
148 host_port,
156 const ppapi::HostPortPair& host_port,
168 net::HostPortPair(host_port.host, host_port.port));
117 OnMsgResolve( const ppapi::host::HostMessageContext* context, const ppapi::HostPortPair& host_port, const PP_HostResolver_Private_Hint& hint) argument
154 DoResolve( const ReplyMessageContext& context, const ppapi::HostPortPair& host_port, const PP_HostResolver_Private_Hint& hint, ResourceContext* resource_context) argument
/external/chromium_org/build/android/pylib/
H A Dforwarder.py70 port_pairs: A list of tuples (device_port, host_port) to forward. Note
94 str(host_port)] for device_port, host_port in port_pairs]
113 'expected "device_port:host_port"' % output)
115 host_port = int(tokens[1])
117 instance._device_to_host_port_map[serial_with_port] = host_port
118 instance._host_to_device_port_map[host_port] = serial_with_port
120 device_port, host_port)
142 port_pairs: A list of tuples (device_port, host_port) to unmap.
163 def DevicePortForHostPort(host_port)
[all...]
H A Dchrome_test_server_spawner.py124 self.host_port = self.arguments['port']
125 assert isinstance(self.host_port, int)
138 by self.pipe_out. It is written as a result to |self.host_port|.
143 assert self.host_port == 0 and self.pipe_out and self.pipe_in
169 self.host_port = port_json['port']
170 return _CheckPortStatus(self.host_port, True)
192 assert self.host_port == args_copy['port']
193 if self.host_port == 0:
239 self.is_ready = _CheckPortStatus(self.host_port, True)
241 Forwarder.Map([(0, self.host_port)], sel
[all...]
H A Dports.py83 def IsHostPortUsed(host_port):
89 host_port: Port on host we want to check.
94 port_info = '(\*)|(127\.0\.0\.1)|(localhost):%d' % host_port
99 if re_port.search(cmd_helper.GetCmdOutput(['lsof', '-nPi:%d' % host_port])):
/external/chromium_org/chrome/browser/supervised_user/
H A Dsupervised_user_browsertest.cc121 std::string host_port = test_server()->host_port_pair().ToString(); variable
123 "MAP *.example.com " + host_port + "," +
124 "MAP *.new-example.com " + host_port + "," +
125 "MAP *.a.com " + host_port);
/external/chromium_org/net/spdy/
H A Dspdy_http_utils.cc215 std::string host_port; local
223 host_port = it->second;
228 std::string url = (scheme.empty() || host_port.empty() || path.empty())
230 : scheme + "://" + host_port + path;
/external/chromium_org/chrome/browser/extensions/
H A Dwebstore_installer_test.cc60 net::HostPortPair host_port = test_server()->host_port_pair(); local
63 webstore_domain_.c_str(), host_port.port(), test_data_path_.c_str());

Completed in 1675 milliseconds

12