Chromium Code Reviews| 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..d6d66e92428b49140790bf930f16c802bd1a3795 |
| --- /dev/null |
| +++ b/cloud_print/gcp20/prototype/printer.h |
| @@ -0,0 +1,34 @@ |
| +// 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: |
|
Vitaly Buka (NO REVIEWS)
2013/06/14 19:27:07
Empty line before private:
maksymb
2013/06/14 22:17:14
Done.
|
| + // Contains |true| if initialized. |
| + bool initialized_; |
| + |
| + // Contains DNS-SD server. |
| + DnsSdServer dns_server_; |
| +}; |
| + |
| +#endif // GCP20_PROTOTYPE_PRINTER_H_ |
| + |