| Index: chrome/service/cloud_print/cloud_print_proxy.h
|
| ===================================================================
|
| --- chrome/service/cloud_print/cloud_print_proxy.h (revision 0)
|
| +++ chrome/service/cloud_print/cloud_print_proxy.h (revision 0)
|
| @@ -0,0 +1,43 @@
|
| +// Copyright (c) 2010 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 CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
|
| +#define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/scoped_ptr.h"
|
| +
|
| +// TODO(sanjeevr): Integrate this with the CloudPrintProxyBackend. This needs to
|
| +// happen after the cloud_print related files are moved to chrome/service.
|
| +
|
| +// CloudPrintProxy is the layer between the service process UI thread
|
| +// and the cloud print proxy backend.
|
| +class CloudPrintProxy {
|
| + public:
|
| + explicit CloudPrintProxy();
|
| + virtual ~CloudPrintProxy();
|
| +
|
| + // Initializes the object. This should be called every time an object of this
|
| + // class is constructed.
|
| + void Initialize();
|
| +
|
| + // Enables/disables cloud printing for the user
|
| + virtual void EnableForUser(const std::string& lsid,
|
| + const std::string& proxy_id);
|
| + virtual void DisableForUser();
|
| +
|
| + // Notification received from the server for a particular printer.
|
| + // We need to inform the backend to look for jobs for this printer.
|
| + void HandlePrinterNotification(const std::string& printer_id);
|
| +
|
| + protected:
|
| + void Shutdown();
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(CloudPrintProxy);
|
| +};
|
| +
|
| +#endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
|
| +
|
|
|
| Property changes on: chrome\service\cloud_print\cloud_print_proxy.h
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|