#include "content/public/browser/service_process_host.h"
#include "base/strings/utf_string_conversions.h"
#include "content/public/common/content_client.h"
namespace content {
ServiceProcessHost::Options::Options() = default;
ServiceProcessHost::Options::~Options() = default;
ServiceProcessHost::Options::Options(Options&&) = default;
ServiceProcessHost::Options& ServiceProcessHost::Options::WithDisplayName(
const std::string& name) { … }
ServiceProcessHost::Options& ServiceProcessHost::Options::WithDisplayName(
const std::u16string& name) { … }
ServiceProcessHost::Options& ServiceProcessHost::Options::WithDisplayName(
int resource_id) { … }
ServiceProcessHost::Options& ServiceProcessHost::Options::WithSite(
const GURL& url) { … }
ServiceProcessHost::Options& ServiceProcessHost::Options::WithChildFlags(
int flags) { … }
ServiceProcessHost::Options&
ServiceProcessHost::Options::WithExtraCommandLineSwitches(
std::vector<std::string> switches) { … }
ServiceProcessHost::Options& ServiceProcessHost::Options::WithProcessCallback(
base::OnceCallback<void(const base::Process&)> callback) { … }
#if BUILDFLAG(IS_WIN)
ServiceProcessHost::Options&
ServiceProcessHost::Options::WithPreloadedLibraries(
std::vector<base::FilePath> preloads,
base::PassKey<ServiceProcessHostPreloadLibraries> passkey) {
preload_libraries = std::move(preloads);
return *this;
}
#endif
ServiceProcessHost::Options& ServiceProcessHost::Options::WithGpuClient(
base::PassKey<ServiceProcessHostGpuClient> passkey) { … }
ServiceProcessHost::Options ServiceProcessHost::Options::Pass() { … }
}