Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5635)

Unified Diff: chrome/service/cloud_print/cloud_print_proxy.h

Issue 3257011: Registered the service process to AutoRun (for Windows) if any service (Cloud... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fixed Linux compile Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/service_process_util.cc ('k') | chrome/service/cloud_print/cloud_print_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « chrome/common/service_process_util.cc ('k') | chrome/service/cloud_print/cloud_print_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698