#include "chrome/browser/ui/views/page_info/about_this_site_side_panel_view.h"
#include <string_view>
#include "base/task/single_thread_task_runner.h"
#include "chrome/browser/page_info/about_this_site_side_panel_throttle.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/browser/ui/page_info/about_this_site_side_panel.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "components/page_info/core/about_this_site_service.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/page_navigator.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/referrer.h"
#include "net/base/url_util.h"
#include "third_party/blink/public/common/loader/loader_constants.h"
#include "ui/base/window_open_disposition.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/layout/flex_layout_types.h"
#include "ui/views/layout/flex_layout_view.h"
#include "url/origin.h"
namespace {
std::unique_ptr<views::WebView> CreateWebView(
views::View* host,
content::BrowserContext* browser_context) { … }
}
constexpr char kStaticLoadingScreenURL[] = …;
AboutThisSiteSidePanelView::AboutThisSiteSidePanelView(
content::WebContents* parent_web_contents)
: … { … }
void AboutThisSiteSidePanelView::LoadProgressChanged(double progress) { … }
void AboutThisSiteSidePanelView::OpenUrl(const content::OpenURLParams& params) { … }
void AboutThisSiteSidePanelView::DidOpenRequestedURL(
content::WebContents* new_contents,
content::RenderFrameHost* source_render_frame_host,
const GURL& url,
const content::Referrer& referrer,
WindowOpenDisposition disposition,
ui::PageTransition transition,
bool started_from_context_menu,
bool renderer_initiated) { … }
content::WebContents* AboutThisSiteSidePanelView::OpenURLFromTab(
content::WebContents* source,
const content::OpenURLParams& params,
base::OnceCallback<void(content::NavigationHandle&)>
navigation_handle_callback) { … }
bool AboutThisSiteSidePanelView::HandleKeyboardEvent(
content::WebContents* source,
const input::NativeWebKeyboardEvent& event) { … }
BrowserView* AboutThisSiteSidePanelView::outer_browser_view() { … }
content::WebContentsDelegate* AboutThisSiteSidePanelView::outer_delegate() { … }
void AboutThisSiteSidePanelView::OpenUrlInBrowser(
const content::OpenURLParams& params) { … }
bool AboutThisSiteSidePanelView::IsNavigationAllowed(const GURL& new_url,
const GURL& old_url) { … }
GURL AboutThisSiteSidePanelView::CleanUpQueryParams(const GURL& url) { … }
void AboutThisSiteSidePanelView::SetContentVisible(bool visible) { … }
AboutThisSiteSidePanelView::~AboutThisSiteSidePanelView() = default;