Home | History | Annotate | Download | only in prototype
      1 // Copyright 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "cloud_print/gcp20/prototype/service_parameters.h"
      6 
      7 ServiceParameters::ServiceParameters() : http_port_(0) {
      8 }
      9 
     10 ServiceParameters::~ServiceParameters() {
     11 }
     12 
     13 ServiceParameters::ServiceParameters(const std::string& service_type,
     14                                      const std::string& secondary_service_type,
     15                                      const std::string& service_name_prefix,
     16                                      const std::string& service_domain_name,
     17                                      const net::IPAddressNumber& http_ipv4,
     18                                      const net::IPAddressNumber& http_ipv6,
     19                                      uint16 http_port)
     20     : service_type_(service_type),
     21       secondary_service_type_(secondary_service_type),
     22       service_name_(service_name_prefix + "." + service_type),
     23       service_domain_name_(service_domain_name),
     24       http_ipv4_(http_ipv4),
     25       http_ipv6_(http_ipv6),
     26       http_port_(http_port) {
     27 }
     28