summaryrefslogtreecommitdiffstats
path: root/chrome/service/service_process.h
diff options
context:
space:
mode:
authorsanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 22:37:38 +0000
committersanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 22:37:38 +0000
commit17543d6da3e6078109e25358481fd3bbd98ab587 (patch)
tree9d92d94d76db72a6feb4becc2e7f77ec89ebcf10 /chrome/service/service_process.h
parent4c974a138a20ec387ad0f347ca6d0804f26de74e (diff)
downloadchromium_src-17543d6da3e6078109e25358481fd3bbd98ab587.zip
chromium_src-17543d6da3e6078109e25358481fd3bbd98ab587.tar.gz
chromium_src-17543d6da3e6078109e25358481fd3bbd98ab587.tar.bz2
All communication with the cloud print proxy service from the browser now happens in the CloudPrintProxyService class. Added code to start the service process if the cloud print proxy was enabled. Also, when detect an auto-update, we send an IPC to the service process. The service process then shuts down when the browser disconnects.
BUG=None TEST=Unit-tests, test Cloud Print proxy UI, test that when an update is available, the service process shuts down when the browser does. TBR=phajdan.jr Review URL: http://codereview.chromium.org/3617008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61871 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/service_process.h')
-rw-r--r--chrome/service/service_process.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/service/service_process.h b/chrome/service/service_process.h
index 3e99d21..a8a5e5a 100644
--- a/chrome/service/service_process.h
+++ b/chrome/service/service_process.h
@@ -6,6 +6,8 @@
#define CHROME_SERVICE_SERVICE_PROCESS_H_
#pragma once
+#include <string>
+
#include "base/gtest_prod_util.h"
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
@@ -74,6 +76,16 @@ class ServiceProcess : public RemotingDirectoryService::Client,
// Shutdown the service process. This is likely triggered by a IPC message.
void Shutdown();
+ void SetUpdateAvailable() {
+ update_available_ = true;
+ }
+ bool update_available() const { return update_available_; }
+
+ // Called by the IPC server when a client disconnects. A return value of
+ // true indicates that the IPC server should continue listening for new
+ // connections.
+ bool HandleClientDisconnect();
+
CloudPrintProxy* GetCloudPrintProxy();
// CloudPrintProxy::Client implementation.
@@ -168,6 +180,9 @@ class ServiceProcess : public RemotingDirectoryService::Client,
// Count of currently enabled services in this process.
int enabled_services_;
+ // Speficies whether a product update is available.
+ bool update_available_;
+
DISALLOW_COPY_AND_ASSIGN(ServiceProcess);
};