summaryrefslogtreecommitdiffstats
path: root/chrome/service/service_ipc_server.cc
Commit message (Collapse)AuthorAgeFilesLines
* Added wipeout functionality when Cloud Print Connector get disabled by user ↵gene@chromium.org2012-05-041-2/+5
| | | | | | | | | | | | in settings. This will unregister all local printers from the server. TEST=Disable CLoud Print in Chrome and verify printers get unregistered. Review URL: http://codereview.chromium.org/10373002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135420 0039d316-1c4b-4281-b951-d872f2087c98
* Virtual Cloud Print Driver for Mac.abeera@google.com2011-08-151-0/+13
| | | | | | | | | | | Includes code for the driver itself. Also modifies the browser process as well as service process to register Apple Event handlers. Also changes the service process to allow registration of driver. BUG= TEST= Review URL: http://codereview.chromium.org/7485011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96825 0039d316-1c4b-4281-b951-d872f2087c98
* Created an IPC method to enable the cloud print proxy using robot OAuth2 ↵sanjeevr@chromium.org2011-05-131-0/+12
| | | | | | | | | | | | | | | credentials. Used this method in the browser. This will be used by the new login scheme for Cloud Print. BUG=None TEST=None Review URL: http://codereview.chromium.org/6969055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85337 0039d316-1c4b-4281-b951-d872f2087c98
* Changed the IPC between the browser and the service process to return more ↵sanjeevr@chromium.org2011-05-111-15/+6
| | | | | | | | | | detailed information about the cloud print proxy. This is a first step towards the new login mechanism for Cloud Print. BUG=None TEST=Unit-tests, enabling disabling cloud print proxy Review URL: http://codereview.chromium.org/7001012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85038 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the Remoting Host component from Chrome.wez@chromium.org2011-05-101-40/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Update the Remoting feature flag description. * Fix license headers. * Remove files from gyp definitions. * Remove Chromoting trigger for Service Process launch on browser startup, and Chromoting setup HTML resources. * Remove Chromoting Host registration components from Browser. * Remove resources for Chromoting Host options UI. * Remove Service Process control APIs for Chromoting Host. * Remove Chromoting Host prefs from Browser UI. * Remove WebUI for Chromoting Host. * Remove WebUI options for Chromoting Host. * Remove Chromoting Host policy options, and don't warn if Chromoting is entirely disabled by policy, since there are no user-visible settings for it anyway. * Remove Chromoting Host preference names, service IPCs and URL constants. * Remove Chromoting Host from Service Process. * Remove remoting strings, locale settings and setup "Id". BUG= TEST=Run Service Process from a profile in which Chromoting Host had previously been configured, and Cloud Print NOT configured. Chromoting Host should not be accessible, and Service Process should quit after about a minute. Review URL: http://codereview.chromium.org/6955010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84819 0039d316-1c4b-4281-b951-d872f2087c98
* Switch IPC::ChannelProxy to use MessageLoopProxy instead of MessageLoop. ↵jam@chromium.org2011-05-021-1/+1
| | | | | | | | This allows us to remove usage of the IOThread object, and generally makes IPC::ChannelProxy more robust for future uses. Review URL: http://codereview.chromium.org/6901146 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83741 0039d316-1c4b-4281-b951-d872f2087c98
* Mac/Linux proxy fix.scottbyer@chromium.org2011-03-071-0/+5
| | | | | | | | | | | | | | | On Mac/Linux we keep the socket open, so don't get an OnChannelConnected message when a new Chromium launches and connects to the service, so we weren't properly marking ourselves as having a client connected. When the service was disable and Chromium exited, it meant we weren't properly exiting immediately. This is only a partial fix for the bug. BUG=74983 TEST=Start Chromium, enable the proxy, quit Chromium, start Chromium, disable the proxy, quit Chromium. With this fix the service process immediately exits. Review URL: http://codereview.chromium.org/6635023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77206 0039d316-1c4b-4281-b951-d872f2087c98
* Mac print proxy out from flag.scottbyer@chromium.org2011-03-051-0/+5
| | | | | | | | | | | | | We found the issue with control of the service process, and with that fix the proxy is stable enough to be exposed. The fix also improves the Linux proxy control, but an autostarted service process on Linux still has an issue, so that remains behind the flag. BUG=74223 TEST=See that cloud print proxy is not in about:flags on the Mac, and the sign in is availble in Under the Hood. Signing in, restarting Chromium, and disabling the proxy works (removes the autostart file is the quickest visible way to verify). Review URL: http://codereview.chromium.org/6633004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77005 0039d316-1c4b-4281-b951-d872f2087c98
* Tear down service IPC channel before creating a new one.wez@chromium.org2011-03-041-0/+1
| | | | | | | | | BUG=74820 TEST=Start Chrome and enable Chromoting. Restart Chromer and open Preferences, and check that Remoting is correctly detected as enabled. Review URL: http://codereview.chromium.org/6612028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76903 0039d316-1c4b-4281-b951-d872f2087c98
* Get service process running standalone on the mac by hooking it into launchd.dmaclach@chromium.org2011-02-241-5/+13
| | | | | | | | | BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/6482016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75893 0039d316-1c4b-4281-b951-d872f2087c98
* Get service processes working on Mac and Linux.dmaclach@chromium.org2011-02-021-1/+1
| | | | | | | | | | | Service processes will now launch, and attach to ipc channels. BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/6349029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73425 0039d316-1c4b-4281-b951-d872f2087c98
* Show remoting host status on the advanced options page.sergeyu@chromium.org2011-01-141-2/+8
| | | | | | | | | BUG=67218 TEST=Remoting status is shown on the advanced options page. Review URL: http://codereview.chromium.org/6214003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71410 0039d316-1c4b-4281-b951-d872f2087c98
* Chromoting setup flow: implemented rest of setup flow steps.sergeyu@chromium.org2011-01-061-5/+0
| | | | | | | | | BUG=67218 TEST=None Review URL: http://codereview.chromium.org/6033005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70576 0039d316-1c4b-4281-b951-d872f2087c98
* Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ↵jam@chromium.org2010-12-241-1/+4
| | | | | | | | | whether a message was processed or not. TBR=brettw Review URL: http://codereview.chromium.org/5978003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70139 0039d316-1c4b-4281-b951-d872f2087c98
* Remove chromoting host registration from service process. More IPCs to controlsergeyu@chromium.org2010-12-231-10/+30
| | | | | | | | | | | host state. BUG=None TEST=Unittests. Review URL: http://codereview.chromium.org/5955001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70081 0039d316-1c4b-4281-b951-d872f2087c98
* Rename all methods accessing Singleton<T> as GetInstance().satish@chromium.org2010-12-131-2/+2
| | | | | | | | | | | | | This is in preparation to a subsequent CL where Singleton<T> will restrict access to only the type being made singleton. I also moved pepper::ResourceTracker to a lazy instance since there were too many places in code where this class was being accessed from and this was a smaller change than renaming methods in that case. BUG=65298 TEST=all existing tests should pass. Review URL: http://codereview.chromium.org/5685007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68982 0039d316-1c4b-4281-b951-d872f2087c98
* Add a base class for objects that want to filter messages on the IO thread. ↵jam@chromium.org2010-12-021-1/+1
| | | | | | | | | I'll switch the filters to it in future separate changes. I've also taken out the special case for an initial filter from the IPC classes. The reason it existed was that there was a race condition of some messages not being filtered if a filter is added after construction but before launching the peer process. Taking it out allows us to add more than one filter and makes things a little cleaner. Review URL: http://codereview.chromium.org/5513001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68043 0039d316-1c4b-4281-b951-d872f2087c98
* All communication with the cloud print proxy service from the browser now ↵sanjeevr@chromium.org2010-10-071-1/+10
| | | | | | | | | | | 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
* The service process now enables a timebomb on startup to check if its ↵sanjeevr@chromium.org2010-10-041-2/+10
| | | | | | | | | | | services are needed. If not, it shuts down. Also the ShutdownIfNeeded method checks to see if clients are connected before shutting down. And we only try to recreate the channel if we were previously connected to a client. BUG=None. TEST=Run the service process without any enabled services. It should die within a minute. Review URL: http://codereview.chromium.org/3562004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61421 0039d316-1c4b-4281-b951-d872f2087c98
* Cloud print proxy management UI.scottbyer@chromium.org2010-09-271-3/+5
| | | | | | | | | | | Based in the Under-the-Hood section of options, this UI allows mere mortals to turn on and off the cloud print proxy. Currently working on Windows only, behind a flag. BUG=none TEST=Open up the options, turn CPP on and off. Review URL: http://codereview.chromium.org/3450021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60684 0039d316-1c4b-4281-b951-d872f2087c98
* Recreate the channel when an IPC client to the service process (typically a ↵sanjeevr@chromium.org2010-09-221-6/+14
| | | | | | | | | | | | | browser process) disconnects so we can keep servicing client requests. BUG=None TEST=Test connecting to a service process over IPC repeatedly. Review URL: http://codereview.chromium.org/3451013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60232 0039d316-1c4b-4281-b951-d872f2087c98
* Added a sync IPC method to check the enabled state of the cloud print proxy.sanjeevr@chromium.org2010-09-161-0/+7
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/3457003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59749 0039d316-1c4b-4281-b951-d872f2087c98
* Gaia authentication for access remoting directory and talkhclam@chromium.org2010-08-171-0/+12
| | | | | | | | | | | | | | | | We are now able to access remoting directory token and talk token through the chromoting setup dialog. These information are sent to the service process for enabling the chromoting host and perform the host registration. All the plumbing for starting the service process, enabling the chromoting host through through IPC commands are in place but host registration is stubbed out and will be completed in next patch. Review URL: http://codereview.chromium.org/3176014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56278 0039d316-1c4b-4281-b951-d872f2087c98
* ServiceProcessControl to launch a service process and communicate through IPC.hclam@chromium.org2010-08-121-0/+9
| | | | | | | | | | | | | | | | | | Added two class for use with service process: ServiceProcessControl Used by the browser to launch and connect to the service process, also used to receive messages from the service process. ServiceProcessControlManager A singleton to manage multiple ServicProcessControl. BUG=50244 TEST=browser_tests --gtest_filter=ServiceProcess* Review URL: http://codereview.chromium.org/3032061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55826 0039d316-1c4b-4281-b951-d872f2087c98
* Added an IPC server in the service process to listen to commands. This is ↵sanjeevr@chromium.org2010-07-311-0/+85
not used yet. BUG=None TEST=None for now since this code is not enabled. Review URL: http://codereview.chromium.org/3041036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54440 0039d316-1c4b-4281-b951-d872f2087c98