diff options
author | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-12 19:25:07 +0000 |
---|---|---|
committer | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-12 19:25:07 +0000 |
commit | 1d0ee423b6a0bb307c7c19fe28c95d8761691e9a (patch) | |
tree | 5766edd6b8b8a7b2eb3942e75008388a0ecfeff0 /chrome/common | |
parent | b90b874fe7023537531fbd08df403694e3e3a520 (diff) | |
download | chromium_src-1d0ee423b6a0bb307c7c19fe28c95d8761691e9a.zip chromium_src-1d0ee423b6a0bb307c7c19fe28c95d8761691e9a.tar.gz chromium_src-1d0ee423b6a0bb307c7c19fe28c95d8761691e9a.tar.bz2 |
Created a new process type called the service process to host background 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
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 16 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 4 | ||||
-rw-r--r-- | chrome/common/sandbox_init_wrapper_mac.cc | 3 |
3 files changed, 22 insertions, 1 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 3cc7620..0e488c3 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -75,6 +75,9 @@ const char kBrowserSubprocessPath[] = "browser-subprocess-path"; // as a dependent process of the Chrome Frame plugin. const char kChromeFrame[] = "chrome-frame"; +// The unique id to be used for this cloud print proxy instance. +const char kCloudPrintProxyId[] = "cloud-print-proxy-id"; + // The Country we should use. This is normally obtained from the operating // system during first run and cached in the preferences afterwards. This is a // string value, the 2 letter code from ISO 3166-1. @@ -250,6 +253,13 @@ const char kEnableAuthNegotiatePort[] = "enable-auth-negotiate-port"; // Enables the benchmarking extensions. const char kEnableBenchmarking[] = "enable-benchmarking"; +// This applies only when the process type is "service". Enables the +// Cloud Print Proxy component within the service process. +const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy"; + +// Enables the Cloud Print dialog hosting code. +const char kEnableCloudPrint[] = "enable-cloud-print"; + // Enables extension APIs that are in development. const char kEnableExperimentalExtensionApis[] = "enable-experimental-extension-apis"; @@ -680,6 +690,12 @@ const char kSdchFilter[] = "enable-sdch"; // from the omnibox. const char kSearchInOmniboxHint[] = "search-in-omnibox-hint"; +// Causes the process to run as a service process. +const char kServiceProcess[] = "service"; + +// The LSID of the account to use for the service process. +const char kServiceAccountLsid[] = "service-account-lsid"; + // See kHideIcons. const char kShowIcons[] = "show-icons"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index e4fda04..a52b316 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -37,6 +37,7 @@ extern const char kBrowserAssertTest[]; extern const char kBrowserCrashTest[]; extern const char kBrowserSubprocessPath[]; extern const char kChromeFrame[]; +extern const char kCloudPrintProxyId[]; extern const char kCountry[]; extern const char kDebugPrint[]; extern const char kDiagnostics[]; @@ -86,6 +87,7 @@ extern const char kDumpHistogramsOnExit[]; extern const char kEnableAeroPeekTabs[]; extern const char kEnableAuthNegotiatePort[]; extern const char kEnableBenchmarking[]; +extern const char kEnableCloudPrintProxy[]; extern const char kEnableExperimentalExtensionApis[]; extern const char kEnableExperimentalWebGL[]; extern const char kEnableExtensionApps[]; @@ -192,6 +194,8 @@ extern const char kRestoreLastSession[]; extern const char kSafePlugins[]; extern const char kSdchFilter[]; extern const char kSearchInOmniboxHint[]; +extern const char kServiceProcess[]; +extern const char kServiceAccountLsid[]; extern const char kShowCompositedLayerBorders[]; extern const char kShowIcons[]; extern const char kShowPaintRects[]; diff --git a/chrome/common/sandbox_init_wrapper_mac.cc b/chrome/common/sandbox_init_wrapper_mac.cc index 17acce8..998fe64 100644 --- a/chrome/common/sandbox_init_wrapper_mac.cc +++ b/chrome/common/sandbox_init_wrapper_mac.cc @@ -59,7 +59,8 @@ bool SandboxInitWrapper::InitializeSandbox(const CommandLine& command_line, sandbox_process_type = sandbox::SANDBOX_TYPE_NACL_LOADER; } else if ((process_type == switches::kPluginProcess) || (process_type == switches::kProfileImportProcess) || - (process_type == switches::kGpuProcess)) { + (process_type == switches::kGpuProcess) || + (process_type == switches::kServiceProcess)) { return true; } else { // Failsafe: If you hit an unreached here, is your new process type in need |