| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ |
| 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "base/scoped_ptr.h" |
| 12 |
| 13 // TODO(sanjeevr): Integrate this with the CloudPrintProxyBackend. This needs to |
| 14 // happen after the cloud_print related files are moved to chrome/service. |
| 15 |
| 16 // CloudPrintProxy is the layer between the service process UI thread |
| 17 // and the cloud print proxy backend. |
| 18 class CloudPrintProxy { |
| 19 public: |
| 20 explicit CloudPrintProxy(); |
| 21 virtual ~CloudPrintProxy(); |
| 22 |
| 23 // Initializes the object. This should be called every time an object of this |
| 24 // class is constructed. |
| 25 void Initialize(); |
| 26 |
| 27 // Enables/disables cloud printing for the user |
| 28 virtual void EnableForUser(const std::string& lsid, |
| 29 const std::string& proxy_id); |
| 30 virtual void DisableForUser(); |
| 31 |
| 32 // Notification received from the server for a particular printer. |
| 33 // We need to inform the backend to look for jobs for this printer. |
| 34 void HandlePrinterNotification(const std::string& printer_id); |
| 35 |
| 36 protected: |
| 37 void Shutdown(); |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxy); |
| 40 }; |
| 41 |
| 42 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ |
| 43 |
| OLD | NEW |