#include "content/test/test_content_browser_client.h"
#include "base/check.h"
#include "base/files/file_path.h"
#include "build/build_config.h"
#include "content/public/browser/browser_context.h"
#if BUILDFLAG(IS_ANDROID)
#include "content/shell/android/shell_descriptors.h"
#endif
namespace content {
TestContentBrowserClient* TestContentBrowserClient::instance_ = …;
TestContentBrowserClient::TestContentBrowserClient() { … }
TestContentBrowserClient::~TestContentBrowserClient() { … }
TestContentBrowserClient* TestContentBrowserClient::GetInstance() { … }
base::FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() { … }
GeneratedCodeCacheSettings
TestContentBrowserClient::GetGeneratedCodeCacheSettings(
content::BrowserContext* context) { … }
std::string TestContentBrowserClient::GetUserAgent() { … }
std::string TestContentBrowserClient::GetApplicationLocale() { … }
#if BUILDFLAG(IS_ANDROID)
void TestContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
const base::CommandLine& command_line,
int child_process_id,
content::PosixFileDescriptorInfo* mappings) {
mappings->ShareWithRegion(
kShellPakDescriptor,
base::GlobalDescriptors::GetInstance()->Get(kShellPakDescriptor),
base::GlobalDescriptors::GetInstance()->GetRegion(kShellPakDescriptor));
}
#endif
}