| Index: chrome/service/cloud_print/cloud_print_proxy.h
|
| ===================================================================
|
| --- chrome/service/cloud_print/cloud_print_proxy.h (revision 58099)
|
| +++ chrome/service/cloud_print/cloud_print_proxy.h (working copy)
|
| @@ -20,12 +20,18 @@
|
| class CloudPrintProxy : public CloudPrintProxyFrontend,
|
| public NonThreadSafe {
|
| public:
|
| + class Client {
|
| + public:
|
| + virtual ~Client() {}
|
| + virtual void OnCloudPrintProxyEnabled() {}
|
| + virtual void OnCloudPrintProxyDisabled() {}
|
| + };
|
| CloudPrintProxy();
|
| virtual ~CloudPrintProxy();
|
|
|
| // Initializes the object. This should be called every time an object of this
|
| // class is constructed.
|
| - void Initialize(JsonPrefStore* service_prefs);
|
| + void Initialize(JsonPrefStore* service_prefs, Client* client);
|
|
|
| // Enables/disables cloud printing for the user
|
| virtual void EnableForUser(const std::string& lsid);
|
| @@ -47,6 +53,9 @@
|
| // This class does not own this. It is guaranteed to remain valid for the
|
| // lifetime of this class.
|
| JsonPrefStore* service_prefs_;
|
| + // This class does not own this. If non-NULL, It is guaranteed to remain
|
| + // valid for the lifetime of this class.
|
| + Client* client_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(CloudPrintProxy);
|
| };
|
|
|