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

Unified Diff: content/public/browser/browser_child_process_host.h

Issue 2365273004: Initial implementation for sharing field trial state (win) (Closed)
Patch Set: rebase + gclient sync Created 4 years, 2 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
« no previous file with comments | « content/browser/utility_process_host_impl.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/browser_child_process_host.h
diff --git a/content/public/browser/browser_child_process_host.h b/content/public/browser/browser_child_process_host.h
index e0f2d49e881a78627b62fb6215d6f8768d944da3..e8506d83c829fec13ca1498e47adf14fb155a1d7 100644
--- a/content/public/browser/browser_child_process_host.h
+++ b/content/public/browser/browser_child_process_host.h
@@ -6,6 +6,7 @@
#define CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_
#include "base/environment.h"
+#include "base/memory/shared_memory.h"
#include "base/process/kill.h"
#include "base/process/process_handle.h"
#include "base/strings/string16.h"
@@ -62,11 +63,13 @@ class CONTENT_EXPORT BrowserChildProcessHost : public IPC::Sender {
~BrowserChildProcessHost() override {}
// Derived classes call this to launch the child process asynchronously.
- // Takes ownership of |cmd_line| and |delegate|.
- virtual void Launch(
- SandboxedProcessLauncherDelegate* delegate,
- base::CommandLine* cmd_line,
- bool terminate_on_shutdown) = 0;
+ // Takes ownership of |cmd_line| and |delegate|. Takes in |field_trial_state|
+ // to explicitly pass its handle to be inherited on Windows to the child
+ // process via the command line.
+ virtual void Launch(SandboxedProcessLauncherDelegate* delegate,
+ base::CommandLine* cmd_line,
+ const base::SharedMemory* field_trial_state,
+ bool terminate_on_shutdown) = 0;
virtual const ChildProcessData& GetData() const = 0;
« no previous file with comments | « content/browser/utility_process_host_impl.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698