// Copyright 2024 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_ENTERPRISE_DATA_PROTECTION_DATA_PROTECTION_PAGE_USER_DATA_H_ #define CHROME_BROWSER_ENTERPRISE_DATA_PROTECTION_DATA_PROTECTION_PAGE_USER_DATA_H_ #include <string> #include "components/safe_browsing/core/common/proto/realtimeapi.pb.h" #include "content/public/browser/page_user_data.h" namespace enterprise_data_protection { // A structure holding all data protection settings for a given URL. struct UrlSettings { … }; // Page user data attached at the end of a WebContents navigation to remember // the screenshot allow or deny state. This user data is attached in the // DidFinishNavigation() step of the navigation. // // Note that because of the way Pages are managed by the navigation, this // user data cannot be accessed before the page is ready to be committed. // Specifically, this can't be accessed from steps like DidStartNavigation() // or DidRedirectNavigation(). class DataProtectionPageUserData : public content::PageUserData<DataProtectionPageUserData> { … }; // Return the watermark string to display if present in `threat_info`. Revealed // for testing std::string GetWatermarkString( const std::string& identifier, const safe_browsing::MatchedUrlNavigationRule& rule); } // namespace enterprise_data_protection #endif // CHROME_BROWSER_ENTERPRISE_DATA_PROTECTION_DATA_PROTECTION_PAGE_USER_DATA_H_