chromium/chrome/utility/chrome_content_utility_client.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/utility/chrome_content_utility_client.h"

#include <stddef.h>

#include <utility>

#include "base/check.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "base/profiler/process_type.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/profiler/thread_profiler.h"
#include "chrome/common/profiler/thread_profiler_configuration.h"
#include "chrome/utility/services.h"
#include "components/heap_profiling/in_process/heap_profiler_controller.h"
#include "components/metrics/call_stacks/call_stack_profile_builder.h"
#include "content/public/child/child_thread.h"
#include "content/public/common/content_switches.h"

#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chromeos/ash/components/mojo_service_manager/connection.h"
#endif  // BUILDFLAG(IS_CHROMEOS_ASH)

#if BUILDFLAG(IS_WIN)
#include "sandbox/policy/mojom/sandbox.mojom.h"
#include "sandbox/policy/sandbox_type.h"
#endif

ChromeContentUtilityClient::ChromeContentUtilityClient() = default;

ChromeContentUtilityClient::~ChromeContentUtilityClient() = default;

void ChromeContentUtilityClient::ExposeInterfacesToBrowser(
    mojo::BinderMap* binders) {}

void ChromeContentUtilityClient::UtilityThreadStarted() {}

void ChromeContentUtilityClient::RegisterMainThreadServices(
    mojo::ServiceFactory& services) {}

void ChromeContentUtilityClient::PostIOThreadCreated(
    base::SingleThreadTaskRunner* io_thread_task_runner) {}

void ChromeContentUtilityClient::RegisterIOThreadServices(
    mojo::ServiceFactory& services) {}

#if BUILDFLAG(IS_CHROMEOS_ASH)
mojo::GenericPendingReceiver
ChromeContentUtilityClient::InitMojoServiceManager() {
  return ash::mojo_service_manager::BootstrapServiceManagerInUtilityProcess();
}
#endif  // BUILDFLAG(IS_CHROMEOS_ASH)