Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: cloud_print/gcp20/prototype/service_parameters.cc

Issue 16975004: Finished DNS-SD server. Finished Privet-specified DNS-SD server. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Lint errors. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cloud_print/gcp20/prototype/service_parameters.cc
diff --git a/cloud_print/gcp20/prototype/service_parameters.cc b/cloud_print/gcp20/prototype/service_parameters.cc
new file mode 100644
index 0000000000000000000000000000000000000000..828f0812b0b112bde5b7755992c077dce91ff19a
--- /dev/null
+++ b/cloud_print/gcp20/prototype/service_parameters.cc
@@ -0,0 +1,22 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "cloud_print/gcp20/prototype/service_parameters.h"
+
+ServiceParameters::ServiceParameters() : http_port_(0) {
+}
+
+ServiceParameters::ServiceParameters(const std::string& service_type,
+ const std::string& service_name_prefix,
+ const std::string& service_domain_name,
+ const net::IPAddressNumber& http_ip,
+ uint16 http_port)
+ : service_type_(service_type),
+ service_name_(service_name_prefix + "." + service_type),
+ service_domain_name_(service_domain_name),
+ http_ip_(http_ip),
+ http_port_(http_port) {
+}
+
+

Powered by Google App Engine
This is Rietveld 408576698