- add sources.
[platform/framework/web/crosswalk.git] / src / cloud_print / gcp20 / prototype / service_parameters.cc
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                                      uint16 http_port)
19     : service_type_(service_type),
20       secondary_service_type_(secondary_service_type),
21       service_name_(service_name_prefix + "." + service_type),
22       service_domain_name_(service_domain_name),
23       http_ipv4_(http_ipv4),
24       http_port_(http_port) {
25 }