#include "components/omnibox/browser/location_bar_model_impl.h"
#include "base/check.h"
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "base/notreached.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "components/dom_distiller/core/url_constants.h"
#include "components/dom_distiller/core/url_utils.h"
#include "components/omnibox/browser/buildflags.h"
#include "components/omnibox/browser/location_bar_model_delegate.h"
#include "components/omnibox/browser/location_bar_model_util.h"
#include "components/omnibox/common/omnibox_features.h"
#include "components/search_engines/template_url_service.h"
#include "components/security_state/core/security_state.h"
#include "components/strings/grit/components_strings.h"
#include "net/cert/cert_status_flags.h"
#include "net/cert/x509_certificate.h"
#include "net/ssl/ssl_connection_status_flags.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/text_elider.h"
#include "ui/gfx/vector_icon_types.h"
#include "url/origin.h"
#if (!BUILDFLAG(IS_ANDROID) || BUILDFLAG(ENABLE_VR)) && !BUILDFLAG(IS_IOS)
#include "components/omnibox/browser/vector_icons.h"
#endif
OmniboxEventProto;
LocationBarModelImpl::LocationBarModelImpl(LocationBarModelDelegate* delegate,
size_t max_url_display_chars)
: … { … }
LocationBarModelImpl::~LocationBarModelImpl() { … }
std::u16string LocationBarModelImpl::GetFormattedFullURL() const { … }
std::u16string LocationBarModelImpl::GetURLForDisplay() const { … }
std::u16string LocationBarModelImpl::GetFormattedURL(
url_formatter::FormatUrlTypes format_types) const { … }
GURL LocationBarModelImpl::GetURL() const { … }
security_state::SecurityLevel LocationBarModelImpl::GetSecurityLevel() const { … }
net::CertStatus LocationBarModelImpl::GetCertStatus() const { … }
OmniboxEventProto::PageClassification
LocationBarModelImpl::GetPageClassification(bool is_prefetch) { … }
const gfx::VectorIcon& LocationBarModelImpl::GetVectorIcon() const { … }
std::u16string LocationBarModelImpl::GetSecureDisplayText() const { … }
std::u16string LocationBarModelImpl::GetSecureAccessibilityText() const { … }
bool LocationBarModelImpl::ShouldDisplayURL() const { … }
bool LocationBarModelImpl::IsOfflinePage() const { … }
bool LocationBarModelImpl::ShouldPreventElision() const { … }
bool LocationBarModelImpl::ShouldUseUpdatedConnectionSecurityIndicators()
const { … }