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_ |
+ |