#include "chrome/browser/ui/passwords/password_manager_navigation_throttle.h"
#include "base/metrics/histogram_macros.h"
#include "base/task/sequenced_task_runner.h"
#include "components/password_manager/core/browser/manage_passwords_referrer.h"
#include "components/password_manager/core/browser/password_manager_constants.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/page_navigator.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_user_data.h"
#include "ui/base/page_transition_types.h"
#include "url/gurl.h"
#include "url/origin.h"
#if BUILDFLAG(IS_ANDROID)
#include "chrome/browser/password_manager/android/password_manager_launcher_android.h"
#else
#include "chrome/browser/password_manager/chrome_password_manager_client.h"
#endif
namespace {
NavigationHandle;
NavigationThrottle;
WebContents;
bool IsTriggeredOnGoogleOwnedUI(NavigationHandle* handle) { … }
}
PasswordManagerNavigationThrottle::PasswordManagerNavigationThrottle(
NavigationHandle* handle)
: … { … }
PasswordManagerNavigationThrottle::~PasswordManagerNavigationThrottle() =
default;
std::unique_ptr<PasswordManagerNavigationThrottle>
PasswordManagerNavigationThrottle::MaybeCreateThrottleFor(
NavigationHandle* handle) { … }
NavigationThrottle::ThrottleCheckResult
PasswordManagerNavigationThrottle::WillStartRequest() { … }
const char* PasswordManagerNavigationThrottle::GetNameForLogging() { … }