#include "extensions/shell/browser/shell_browser_context.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/scoped_refptr.h"
#include "components/guest_view/browser/guest_view_manager.h"
#include "extensions/shell/browser/shell_special_storage_policy.h"
namespace extensions {
ShellBrowserContext::ShellBrowserContext()
: content::ShellBrowserContext(false ,
true ),
storage_policy_(base::MakeRefCounted<ShellSpecialStoragePolicy>()) {}
ShellBrowserContext::~ShellBrowserContext() {
NotifyWillBeDestroyed();
}
content::BrowserPluginGuestManager* ShellBrowserContext::GetGuestManager() {
return guest_view::GuestViewManager::FromBrowserContext(this);
}
storage::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
return storage_policy_.get();
}
}