#include "chrome/browser/enterprise/data_protection/data_protection_navigation_controller.h"
#include "base/feature_list.h"
#include "chrome/browser/enterprise/data_protection/data_protection_navigation_observer.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/tabs/public/tab_interface.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "content/public/browser/web_contents.h"
namespace {
Browser* GetBrowser(content::WebContents* web_contents) { … }
}
namespace enterprise_data_protection {
DataProtectionNavigationController::DataProtectionNavigationController(
tabs::TabInterface* tab_interface)
: … { … }
void DataProtectionNavigationController::SetCallbackForTesting(
base::OnceClosure closure) { … }
void DataProtectionNavigationController::TabForegrounded(
tabs::TabInterface* tab) { … }
void DataProtectionNavigationController::DidStartNavigation(
content::NavigationHandle* navigation_handle) { … }
void DataProtectionNavigationController::
ApplyDataProtectionSettingsOrDelayIfEmpty(
base::WeakPtr<content::WebContents> expected_web_contents,
const enterprise_data_protection::UrlSettings& settings) { … }
void DataProtectionNavigationController::ApplyDataProtectionSettings(
base::WeakPtr<content::WebContents> expected_web_contents,
const enterprise_data_protection::UrlSettings& settings) { … }
void DataProtectionNavigationController::
DocumentOnLoadCompletedInPrimaryMainFrame() { … }
void DataProtectionNavigationController::WillDiscardContents(
tabs::TabInterface* tab,
content::WebContents* old_contents,
content::WebContents* new_contents) { … }
DataProtectionNavigationController::~DataProtectionNavigationController() =
default;
}