#include "chrome/browser/devtools/process_sharing_infobar_delegate.h"
#include "chrome/browser/about_flags.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/devtools/devtools_window.h"
#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/grit/generated_resources.h"
#include "components/flags_ui/pref_service_flags_storage.h"
#include "components/infobars/core/infobar.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/mojom/ui_base_types.mojom-shared.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/window/dialog_delegate.h"
namespace {
std::unique_ptr<views::View> MakeRestartView() { … }
}
ProcessSharingInfobarDelegate::ProcessSharingInfobarDelegate(
content::WebContents* web_contents)
: … { … }
ProcessSharingInfobarDelegate::~ProcessSharingInfobarDelegate() = default;
std::u16string ProcessSharingInfobarDelegate::GetMessageText() const { … }
int ProcessSharingInfobarDelegate::GetButtons() const { … }
std::u16string ProcessSharingInfobarDelegate::GetButtonLabel(
InfoBarButton button) const { … }
std::u16string ProcessSharingInfobarDelegate::GetLinkText() const { … }
GURL ProcessSharingInfobarDelegate::GetLinkURL() const { … }
infobars::InfoBarDelegate::InfoBarIdentifier
ProcessSharingInfobarDelegate::GetIdentifier() const { … }
bool ProcessSharingInfobarDelegate::Accept() { … }