summaryrefslogtreecommitdiffstats
path: root/chrome/service/service_main.cc
Commit message (Collapse)AuthorAgeFilesLines
* Clamp down various chrome/ DEPS files.thestig@chromium.org2014-06-241-6/+1
| | | | | | | | TBR=isherman@chromium.org,rogerta@chromium.org,dalecurtis@chromium.org,brettw@chromium.org Review URL: https://codereview.chromium.org/350453004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279265 0039d316-1c4b-4281-b951-d872f2087c98
* Removed code related to Mac virtual printer.vitalybuka@chromium.org2014-03-121-6/+0
| | | | | | | | BUG=111652,350118 Review URL: https://codereview.chromium.org/193923002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256400 0039d316-1c4b-4281-b951-d872f2087c98
* Collect metrics data from service process.vitalybuka@chromium.org2013-10-241-0/+2
| | | | | | | | | | | | MetricsService in browser process sends request for histograms to service process if service is running. Request is called in parallel with requests to other browser child processes. Service process still loses all data collected after browser process is gone. BUG=305019 Review URL: https://codereview.chromium.org/26779002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230796 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of the message_loop header in chrome/app, ↵avi@chromium.org2013-07-171-1/+1
| | | | | | | | | | | | chrome/common, chrome/nacl/, chrome/renderer/, chrome/service/. BUG=260807 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/19579004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212174 0039d316-1c4b-4281-b951-d872f2087c98
* chrome: Use base::MessageLoop. (Part 1)xhwang@chromium.org2013-05-101-2/+2
| | | | | | | | | | | chrome/browser/* will be updated in another CL BUG=236029 R=sky@chromium.org Review URL: https://codereview.chromium.org/14314025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199547 0039d316-1c4b-4281-b951-d872f2087c98
* [Mac] Convert ServiceApplication to not need a custom NSApp class.shess@chromium.org2013-04-261-1/+1
| | | | | | | | BUG=none Review URL: https://chromiumcodereview.appspot.com/14225011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196545 0039d316-1c4b-4281-b951-d872f2087c98
* Move the Windows sandbox to sandbox/winjln@chromium.org2012-07-181-1/+1
| | | | | | | | | | | | | This is a rather large refactor to move the Windows sandbox to the right place. BUG= TEST= NOTRY=true TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10689170 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147151 0039d316-1c4b-4281-b951-d872f2087c98
* Emergency revert; rietveld broke; tree brokeerg@google.com2012-07-131-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146646 0039d316-1c4b-4281-b951-d872f2087c98
* sandbox/src -> sandbox/win/srcjln@chromium.org2012-07-131-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146626 0039d316-1c4b-4281-b951-d872f2087c98
* Restored missing broker initialization.vitalybuka@chromium.org2012-07-031-4/+0
| | | | | | | | | BUG=134574 TEST=none Review URL: https://chromiumcodereview.appspot.com/10690070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145335 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of internal content includes for sandbox code from chrome.jam@chromium.org2012-06-041-5/+2
| | | | | | | BUG=98716 Review URL: https://chromiumcodereview.appspot.com/10512016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140357 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 130578 - Enable cookies per default in net. Add an API to disable ↵jochen@chromium.org2012-04-301-1/+6
| | | | | | | | | | | | them by default, and do that in Chrome BUG=none TEST=existing tests shouldn't break Review URL: http://codereview.chromium.org/10178009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134524 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 130578 - Enable cookies per default in net. Add an API to disable ↵jochen@chromium.org2012-04-041-6/+1
| | | | | | | | | | | | | | them by default, and do that in Chrome BUG=none TEST=existing tests shouldn't break Review URL: https://chromiumcodereview.appspot.com/9865018 TBR=jochen@chromium.org Review URL: https://chromiumcodereview.appspot.com/9956142 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130581 0039d316-1c4b-4281-b951-d872f2087c98
* Enable cookies per default in net. Add an API to disable them by default, ↵jochen@chromium.org2012-04-041-1/+6
| | | | | | | | | | | and do that in Chrome BUG=none TEST=existing tests shouldn't break Review URL: https://chromiumcodereview.appspot.com/9865018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130578 0039d316-1c4b-4281-b951-d872f2087c98
* [Mac] Remove content/ CrApplication.shess@chromium.org2011-12-061-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Pull the CrAppProtocol autorelease-pool handling down into MessagePumpCrApplication, which is selected at Create() if NSApp implements the right protocol. UsingCrApp() allows clients to confirm the correct setup (unfortunately, synchronizing NSApp initialization and MessagePump::Create() would be intrusive). Also push CrAppProtocol and CrAppControlProtocol implementation into BrowserCrApplication, and reparent that class from NSApplication. Reparent ServiceCrApplication on NSApplication and rename. Remove CrApplication registration from gpu, plugin, and renderer mains. Remove MockCrApp dependency from remoting sample code. BUG=102224 Review URL: http://codereview.chromium.org/8771028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113281 0039d316-1c4b-4281-b951-d872f2087c98
* Move content_restriction.h and main_function_params.h to ↵jam@chromium.org2011-10-311-2/+2
| | | | | | | | | content/public/common, and put them in the content namespace. BUG=98716 Review URL: http://codereview.chromium.org/8387039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108004 0039d316-1c4b-4281-b951-d872f2087c98
* Expose the sandbox related code through the content API. I did a bit of ↵jam@chromium.org2011-10-291-4/+5
| | | | | | | | | | | | | cleanup while I was doing this. -got rid of SandboxInitWrapper, since I didn't see a need to expose given that we can just expose sandbox::SandboxInterfaceInfo -got rid of the duplicated code to initialize the broker -since I made MainFunctionParams only have the sandbox struct on Windows, I also made the mac specific auto release pool behind an ifdef as well. It seemed odd to make something so mac specific compile on all platforms to save some #ifdefs. BUG=98716 Review URL: http://codereview.chromium.org/8414020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107863 0039d316-1c4b-4281-b951-d872f2087c98
* Virtual Cloud Print Driver for Mac.abeera@google.com2011-08-151-2/+2
| | | | | | | | | | | 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
* Rename CommandLine::GetCommandLineString().msw@chromium.org2011-07-201-1/+1
| | | | | | | | | | | | Fix string hackery in net/tools/dump_cache/dump_cache.cc Fix const casts in chrome/installer/util/product.cc and base/process_util_win.cc. BUG=73195 TEST=none Review URL: http://codereview.chromium.org/7386002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93165 0039d316-1c4b-4281-b951-d872f2087c98
* Move sandbox_policy to content.jam@chromium.org2011-05-281-1/+1
| | | | | | | BUG=76697 Review URL: http://codereview.chromium.org/7084010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87183 0039d316-1c4b-4281-b951-d872f2087c98
* Getting service process on Mac to handle having things moved/changed ↵dmaclach@chromium.org2011-03-221-3/+5
| | | | | | | | | | | 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
* Move some chrome\common code to content in preparation for moving chrome\gpu.jam@chromium.org2011-03-111-2/+2
| | | | | | | TBR=avi Review URL: http://codereview.chromium.org/6686002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77868 0039d316-1c4b-4281-b951-d872f2087c98
* Make changes sanjeev suggesteddmaclach@chromium.org2011-02-031-2/+0
| | | | | | | | | BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/6286082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73656 0039d316-1c4b-4281-b951-d872f2087c98
* Get service processes working on Mac and Linux.dmaclach@chromium.org2011-02-021-18/+19
| | | | | | | | | | | 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
* Initialized CrApplication for the service process.sanjeevr@chromium.org2011-01-291-0/+8
| | | | | | | | | BUG=None TEST=Service process should run on the Mac Review URL: http://codereview.chromium.org/6269026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73091 0039d316-1c4b-4281-b951-d872f2087c98
* Move platform_thread to base/threading and put in the base namespace. I left abrettw@chromium.org2010-12-311-1/+2
| | | | | | | | | | | stub and "using" declarations in the old location to avoid having to change the entire project at once. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6001010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70342 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new GetInstance() method for singleton classes under chrome/service ↵satish@chromium.org2010-12-091-1/+1
| | | | | | | | | | | | | | | | | | | | 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
* Move debug-related stuff from base to the base/debug directory and use thebrettw@chromium.org2010-10-261-2/+2
| | | | | | | | | | | | | | | | base::debug namespace. This splits apart debug_util into base/debugger and base/stack_trace There are still two functions in debug_util that I'm not sure what to do with. Since this uses the base::debug namespace, I removed the functions in debugger.h from the static class and just made them free functions in the namespace. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/3945002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63859 0039d316-1c4b-4281-b951-d872f2087c98
* Spilt code in service_process_utils.cc into separate files for Windows and ↵sanjeevr@chromium.org2010-10-131-1/+2
| | | | | | | | | | | 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
* Removed the ServiceProcessType enum because a single service process should ↵sanjeevr@chromium.org2010-10-051-0/+5
| | | | | | | | | | | 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
* The service process now enables a timebomb on startup to check if its ↵sanjeevr@chromium.org2010-10-041-1/+5
| | | | | | | | | | | 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
* The LSID for Cloud Print can now be supplied on the command line even if ↵sanjeevr@chromium.org2010-09-141-9/+1
| | | | | | | | | | | Cloud Print was previously enabled. This had broken during a recent change to remember the enabled state of Cloud Print in the service process. BUG=None TEST=With cloud print previously enabled, try launching the service process with a new LSID in the command line. Review URL: http://codereview.chromium.org/3384001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59387 0039d316-1c4b-4281-b951-d872f2087c98
* Resubmit r56600 - Start/stop service process when browser starts and stophclam@chromium.org2010-08-231-0/+5
| | | | | | | | | | | | | | | | | Save the information that the setup of remoting has completed. After setup has been completed we start and stop service process when --enable-remoting presents when browser starts. Also save the information in the service process that host is registered and ready to be used. Again start chromoting host automatically once the host registration is done. BUG=50244, 50242, 50243, 50249 Review URL: http://codereview.chromium.org/3153029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57120 0039d316-1c4b-4281-b951-d872f2087c98
* Resubmit "Start chromoting host in the service process though a method call"hclam@chromium.org2010-08-101-57/+1
| | | | | | | | | | | | | | This change exposes method calls to configure the chromoting host and allow it to be started from a method. This will allow us to use IPC message to start the chromoting host. TEST=unit_tests --gtest_filter=ServiceProcess* BUG=50243, 50244 Review URL: http://codereview.chromium.org/3105002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55593 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 55507 - Start chromoting host in the service process though a method ↵glen@chromium.org2010-08-101-1/+57
| | | | | | | | | | | | | | | | | | | call This change exposes method calls to configure the chromoting host and allow it to be started from a method. This will allow us to use IPC message to start the chromoting host. TEST=unit_tests --gtest_filter=ServiceProcess* BUG=50243, 50244 Review URL: http://codereview.chromium.org/3084024 TBR=hclam@chromium.org Review URL: http://codereview.chromium.org/3110004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55525 0039d316-1c4b-4281-b951-d872f2087c98
* Start chromoting host in the service process though a method callhclam@chromium.org2010-08-101-57/+1
| | | | | | | | | | | | | | This change exposes method calls to configure the chromoting host and allow it to be started from a method. This will allow us to use IPC message to start the chromoting host. TEST=unit_tests --gtest_filter=ServiceProcess* BUG=50243, 50244 Review URL: http://codereview.chromium.org/3084024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55507 0039d316-1c4b-4281-b951-d872f2087c98
* Rename --enable-chromoting to --enable-remotinghclam@chromium.org2010-08-051-2/+1
| | | | | | | | Renaming the flag so we don't expose the internal name. Review URL: http://codereview.chromium.org/3037043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55006 0039d316-1c4b-4281-b951-d872f2087c98
* Added an IPC server in the service process to listen to commands. This is ↵sanjeevr@chromium.org2010-07-311-21/+3
| | | | | | | | | | | 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
* Created a host for running the utility process as a child of the service ↵sanjeevr@chromium.org2010-07-201-0/+8
| | | | | | | | | | | process. This is used for rendering PDFs to a metafile in a sandbox for the Cloud Print proxy on Windows. BUG=None TEST=Test Windows Cloud Print proxy Review URL: http://codereview.chromium.org/2917013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52970 0039d316-1c4b-4281-b951-d872f2087c98
* Start Chromoting Host Process in Chrome Servicehclam@chromium.org2010-07-011-0/+55
| | | | | | | | | | | | Enable chromoting host process if chrome is started with --type=service --enable-chromoting BUG=none TEST=chrome --type=service --enable-chromoting Review URL: http://codereview.chromium.org/2813038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51393 0039d316-1c4b-4281-b951-d872f2087c98
* Rename Chrome threads to use a "Cr" prefix.evan@chromium.org2010-06-091-2/+1
| | | | | | | | | | | Before we carefully used the app (Chrome/Chromium) name, but: 1) these are for internal debugging use only, so why compute this name 2) on Linux the thread ids are limited to 16 characters, and "Chromium" is too long Review URL: http://codereview.chromium.org/2741003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49296 0039d316-1c4b-4281-b951-d872f2087c98
* Added the ability in the service process to save and read state from a prefs ↵sanjeevr@chromium.org2010-05-211-4/+23
| | | | | | | | | | | file. Used this to save and read the cloud print proxy auth token and proxy id. BUG=None. TEST=Test Cloud Print Proxy (run it second time without LSID and ProxyId command-line args) Review URL: http://codereview.chromium.org/2066018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47945 0039d316-1c4b-4281-b951-d872f2087c98
* Created a new process type called the service process to host background ↵sanjeevr@chromium.org2010-05-121-0/+34
tasks such as the Cloud Print Proxy. BUG=None. TEST=None. Review URL: http://codereview.chromium.org/2001009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47055 0039d316-1c4b-4281-b951-d872f2087c98