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

Unified Diff: cloud_print/gcp20/prototype/printer.h

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: Added strong control of size in PrivetDnsResponseBuilder. 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/printer.h
diff --git a/cloud_print/gcp20/prototype/printer.h b/cloud_print/gcp20/prototype/printer.h
new file mode 100644
index 0000000000000000000000000000000000000000..d9c728c616404f455dd412c07d8f6a91a22f57d4
--- /dev/null
+++ b/cloud_print/gcp20/prototype/printer.h
@@ -0,0 +1,35 @@
+// 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.
+
+#ifndef GCP20_PROTOTYPE_PRINTER_H_
+#define GCP20_PROTOTYPE_PRINTER_H_
+
+#include "cloud_print/gcp20/prototype/dns_sd_server.h"
+#include "cloud_print/gcp20/prototype/privet_dns_response_builder.h"
+
+// This class will maintain work of DNS-SD server, HTTP server and others.
+class Printer {
+ public:
+ // Constructs uninitialized object.
+ Printer();
+
+ // Destroys the object.
+ ~Printer();
+
+ // Starts all servers.
+ bool Start();
+
+ // Stops all servers.
+ void Stop();
+
+ private:
+ // Contains |true| if initialized.
+ bool initialized_;
+
+ // Contains DNS-SD server.
+ DnsSdServer dns_server_;
+};
+
+#endif // GCP20_PROTOTYPE_PRINTER_H_
+

Powered by Google App Engine
This is Rietveld 408576698