chromium/content/test/test_content_browser_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 "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 {

// static
TestContentBrowserClient* TestContentBrowserClient::instance_ =;

TestContentBrowserClient::TestContentBrowserClient() {}

TestContentBrowserClient::~TestContentBrowserClient() {}

// static
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
}  // namespace content