17 #ifndef PAGESPEED_SYSTEM_EXTERNAL_SERVER_SPEC_H_
18 #define PAGESPEED_SYSTEM_EXTERNAL_SERVER_SPEC_H_
25 namespace net_instaweb {
30 : host(host_), port(port_) {}
31 bool SetFromString(StringPiece value_string,
int default_port,
34 bool empty()
const {
return host.empty() && port == 0; }
37 return empty() ?
"" : StrCat(host,
":", IntegerToString(port));
45 bool SetFromString(StringPiece value_string,
int default_port,
48 bool empty()
const {
return servers.empty(); }
51 std::vector<ExternalServerSpec> servers;
Definition: external_server_spec.h:27
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: external_server_spec.h:44
GoogleString ToString() const
Definition: external_server_spec.h:35