Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(635)

Unified Diff: content/browser/utility_process_host_impl.h

Issue 98603007: Launches a privileged utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds the elevation flag to the utility process. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/utility_process_host_impl.h
diff --git a/content/browser/utility_process_host_impl.h b/content/browser/utility_process_host_impl.h
index 3083b22941069f375b6074aaa55b571c5965bd1a..dd663dd347c945a23ad0db23e621f0fb68d6343b 100644
--- a/content/browser/utility_process_host_impl.h
+++ b/content/browser/utility_process_host_impl.h
@@ -40,6 +40,9 @@ class CONTENT_EXPORT UtilityProcessHostImpl
virtual void SetExposedDir(const base::FilePath& dir) OVERRIDE;
virtual void EnableMDns() OVERRIDE;
virtual void DisableSandbox() OVERRIDE;
+#if defined(OS_WIN)
+ virtual void ElevatePrivileges() OVERRIDE;
+#endif
virtual const ChildProcessData& GetData() OVERRIDE;
#if defined(OS_POSIX)
virtual void SetEnv(const base::EnvironmentMap& env) OVERRIDE;
@@ -54,6 +57,7 @@ class CONTENT_EXPORT UtilityProcessHostImpl
// BrowserChildProcessHost:
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+ virtual void OnProcessLaunchFailed() OVERRIDE;
virtual void OnProcessCrashed(int exit_code) OVERRIDE;
// A pointer to our client interface, who will be informed of progress.
@@ -72,6 +76,11 @@ class CONTENT_EXPORT UtilityProcessHostImpl
// Whether to pass switches::kNoSandbox to the child.
bool no_sandbox_;
+#if defined(OS_WIN)
+ // Whether to launch the process with elevated privileges.
+ bool run_elevated_;
+#endif
+
// Flags defined in ChildProcessHost with which to start the process.
int child_flags_;
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/utility_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698