#include "content/shell/browser/shell_browser_context.h"
#include <memory>
#include <utility>
#include "base/command_line.h"
#include "base/environment.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "base/threading/thread.h"
#include "build/build_config.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/keyed_service/core/simple_dependency_manager.h"
#include "components/keyed_service/core/simple_factory_key.h"
#include "components/keyed_service/core/simple_key_map.h"
#include "components/network_session_configurator/common/network_switches.h"
#include "components/origin_trials/browser/leveldb_persistence_provider.h"
#include "components/origin_trials/browser/origin_trials.h"
#include "components/origin_trials/common/features.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/origin_trials_controller_delegate.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/common/content_switches.h"
#include "content/shell/browser/shell_content_browser_client.h"
#include "content/shell/browser/shell_content_index_provider.h"
#include "content/shell/browser/shell_download_manager_delegate.h"
#include "content/shell/browser/shell_paths.h"
#include "content/shell/browser/shell_permission_manager.h"
#include "content/shell/common/shell_switches.h"
#include "content/test/mock_background_sync_controller.h"
#include "content/test/mock_reduce_accept_language_controller_delegate.h"
#include "third_party/blink/public/common/origin_trials/trial_token_validator.h"
namespace content {
ShellBrowserContext::ShellBrowserContext(bool off_the_record,
bool delay_services_creation)
: … { … }
ShellBrowserContext::~ShellBrowserContext() { … }
void ShellBrowserContext::InitWhileIOAllowed() { … }
void ShellBrowserContext::FinishInitWhileIOAllowed() { … }
std::unique_ptr<ZoomLevelDelegate> ShellBrowserContext::CreateZoomLevelDelegate(
const base::FilePath&) { … }
base::FilePath ShellBrowserContext::GetPath() { … }
bool ShellBrowserContext::IsOffTheRecord() { … }
DownloadManagerDelegate* ShellBrowserContext::GetDownloadManagerDelegate() { … }
BrowserPluginGuestManager* ShellBrowserContext::GetGuestManager() { … }
storage::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { … }
PlatformNotificationService*
ShellBrowserContext::GetPlatformNotificationService() { … }
PushMessagingService* ShellBrowserContext::GetPushMessagingService() { … }
StorageNotificationService*
ShellBrowserContext::GetStorageNotificationService() { … }
SSLHostStateDelegate* ShellBrowserContext::GetSSLHostStateDelegate() { … }
PermissionControllerDelegate*
ShellBrowserContext::GetPermissionControllerDelegate() { … }
ClientHintsControllerDelegate*
ShellBrowserContext::GetClientHintsControllerDelegate() { … }
BackgroundFetchDelegate* ShellBrowserContext::GetBackgroundFetchDelegate() { … }
BackgroundSyncController* ShellBrowserContext::GetBackgroundSyncController() { … }
BrowsingDataRemoverDelegate*
ShellBrowserContext::GetBrowsingDataRemoverDelegate() { … }
ContentIndexProvider* ShellBrowserContext::GetContentIndexProvider() { … }
ReduceAcceptLanguageControllerDelegate*
ShellBrowserContext::GetReduceAcceptLanguageControllerDelegate() { … }
OriginTrialsControllerDelegate*
ShellBrowserContext::GetOriginTrialsControllerDelegate() { … }
}