summaryrefslogtreecommitdiffstats
path: root/chrome/common/service_process_util.cc
Commit message (Collapse)AuthorAgeFilesLines
* Move some files from base to base/memory.levin@chromium.org2011-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* ServiceProcess clean updmaclach@chromium.org2011-03-231-3/+1
| | | | | | | | | | | | | | I'm about to start into fixing a race condition that I introduced, but wanted to get this cleanup in as a separate CL. Simplifies some interfaces. Combines two separate task postings into one. Adds some comments. BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/6724002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79095 0039d316-1c4b-4281-b951-d872f2087c98
* Getting service process on Mac to handle having things moved/changed ↵dmaclach@chromium.org2011-03-221-6/+1
| | | | | | | | | | | underneath it. BUG=74983 TEST=See http://code.google.com/p/chromium/issues/detail?id=74983#c16 Review URL: http://codereview.chromium.org/6660001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78967 0039d316-1c4b-4281-b951-d872f2087c98
* Committing on behalf of asharif1@chromium.org.sanjeevr@chromium.org2011-03-171-1/+1
| | | | | | | | | | Original CL description: Initialized process_id variable to 0. Original codereview URL is http://codereview.chromium.org/6697036/ BUG=76448 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78567 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Initialize member variables.jhawkins@chromium.org2011-03-111-1/+1
| | | | | | | | | | CID=11644,14447,14816,15428 BUG=none TEST=none Review URL: http://codereview.chromium.org/6670016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77763 0039d316-1c4b-4281-b951-d872f2087c98
* Move ChildProcessHost and ChildProcessInfo to content.jam@chromium.org2011-03-091-1/+1
| | | | | | | TBR=avi Review URL: http://codereview.chromium.org/6612040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77496 0039d316-1c4b-4281-b951-d872f2087c98
* Removed the command line from ServiceProcessState::AddToAutoRun() and had ↵sanjeevr@chromium.org2011-02-251-0/+23
| | | | | | | | | | | the class calculate its own command line. Wired up Linux autorun code and added unit tests. BUG=None TEST=Test service process autorun when enabling the cloud print proxy, unit-tests. Review URL: http://codereview.chromium.org/6591002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76077 0039d316-1c4b-4281-b951-d872f2087c98
* Get service process running standalone on the mac by hooking it into launchd.dmaclach@chromium.org2011-02-241-17/+25
| | | | | | | | | 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-51/+62
| | | | | | | | | | | 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
* Change UTF8ToUTF16 to accept const StringPiece&.suzhe@google.com2011-01-281-1/+2
| | | | | | | | | BUG=70936 TEST=All unit tests should pass. Review URL: http://codereview.chromium.org/6317016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72921 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 69592 - file_version_info was not finding Mac values correctly.dmaclach@chromium.org2010-12-181-0/+11
| | | | | | | | | | | | | | Changed file_version_info to find Mac values, and changed version_info to fail if values can't be found. BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/5815001 TBR=dmaclach@chromium.org Review URL: http://codereview.chromium.org/6017003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69601 0039d316-1c4b-4281-b951-d872f2087c98
* file_version_info was not finding Mac values correctly.dmaclach@chromium.org2010-12-181-11/+0
| | | | | | | | | | | Changed file_version_info to find Mac values, and changed version_info to fail if values can't be found. BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/5815001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69592 0039d316-1c4b-4281-b951-d872f2087c98
* Installer cleanupamit@chromium.org2010-12-161-9/+6
| | | | | | | | | | | | | 1] Remove installer::version and use base::version in installer 2] Use file_util::FileEnumerator instead of calling FindFirstFile directly BUG=none TEST=covered by existing tests Review URL: http://codereview.chromium.org/5687004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69433 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new GetInstance() method for singleton classes under chrome/service ↵satish@chromium.org2010-12-091-0/+6
| | | | | | | | | | | | | | | | | | | | and /net. This is a small step towards making all singleton classes use the Singleton<T> pattern within their code and not expect the callers to know about it. This CL includes files under chrome/service and /net with related files elsewhere. Suggested files to focus for reviewers: - @sanjeevr for chrome/common and chrome/service - @ukai for net/websockets - @agl for rest of net BUG=65298 TEST=all existing tests should continue to pass. Review URL: http://codereview.chromium.org/5634005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68722 0039d316-1c4b-4281-b951-d872f2087c98
* Fix up SharedMemory implementation so that it is more equivalent on Windows ↵dmaclach@chromium.org2010-10-271-2/+2
| | | | | | | | | | | | | vs Posix and enforces exclusive creates. Clean up some naming to make it clearer what size you are getting by changing max_size to created_size. BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/4034006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64097 0039d316-1c4b-4281-b951-d872f2087c98
* Spilt code in service_process_utils.cc into separate files for Windows and ↵sanjeevr@chromium.org2010-10-131-196/+61
| | | | | | | | | | | Posix. Added unit-tests for this file. Also created a ServiceProcessState class that manages global state for the service process. BUG=None TEST=Unit-tests, cloud print proxy. Review URL: http://codereview.chromium.org/3745001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62448 0039d316-1c4b-4281-b951-d872f2087c98
* Another clang build fix.thakis@chromium.org2010-10-121-0/+2
| | | | | | | | BUG=None TEST=None TBR=gene git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62327 0039d316-1c4b-4281-b951-d872f2087c98
* Fix service for CUPS CP proxy.gene@google.com2010-10-121-0/+7
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3732001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62313 0039d316-1c4b-4281-b951-d872f2087c98
* Added the service process pid to the shared memory data. This will be used ↵sanjeevr@chromium.org2010-10-121-35/+69
| | | | | | | | | | | for tests. Also cleaned up some of the method names in service_process_utils.cc to make them clearer. BUG=None. TEST=Browser tests. Review URL: http://codereview.chromium.org/3727002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62223 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed a bug in the implementation of GetServiceProcessLockFileName which ↵sanjeevr@chromium.org2010-10-101-14/+9
| | | | | | | | | | | caused the version to not get appended. This also caused an error in the clang buidbot. BUG=None TEST=clang buildbot, Cloud Print proxy on Linux. Review URL: http://codereview.chromium.org/3699001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62109 0039d316-1c4b-4281-b951-d872f2087c98
* The IPC channel names and event names used by the service process now append ↵sanjeevr@chromium.org2010-10-091-33/+255
| | | | | | | | | | | | | the version string so that a browser with the same version only can talk to it. In addition, the service process writes its version into shared memory (the name of this shared mem does not use a version) and also listens on a shutdown event. This can be used by a newer service process to shutdown an older version when it starts. BUG=None TEST=Unittests, with an existing service process running, let chrome autoupdate and then run the service process again. It should kill the old one. Review URL: http://codereview.chromium.org/3603016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62066 0039d316-1c4b-4281-b951-d872f2087c98
* Removed the ServiceProcessType enum because a single service process should ↵sanjeevr@chromium.org2010-10-051-15/+30
| | | | | | | | | | | host all types of services. Also implemeneted a rudimentary singleton mechanism for the service process on Windows. BUG=None TEST=Test cloud print proxy and remoting UI. Review URL: http://codereview.chromium.org/3521012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61549 0039d316-1c4b-4281-b951-d872f2087c98
* Registered the service process to AutoRun (for Windows) if any service ↵sanjeevr@chromium.org2010-09-011-3/+1
| | | | | | | | | | | (CloudPrint or Remoting) is enabled. When all services are disabled, we delete the AutoRun key. Also remembered the enabled state of the Cloud Print Proxy in the service prefs. BUG=None TEST=After enabling cloud print or chromoting on Windows, the service process should auto start on user login. Review URL: http://codereview.chromium.org/3257011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58246 0039d316-1c4b-4281-b951-d872f2087c98
* Use named events instead of lock files for service processhclam@chromium.org2010-08-311-6/+50
| | | | | | | | | | | Use named events to signal that a service process is running. BUG=52891 TEST=browser_tests --gtest_filter=ServiceProcess* Review URL: http://codereview.chromium.org/3268003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58041 0039d316-1c4b-4281-b951-d872f2087c98
* ServiceProcessControl to launch a service process and communicate through IPC.hclam@chromium.org2010-08-121-0/+55
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