weblayer_safe_browsing_blocking_page_factory.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef WEBLAYER_BROWSER_SAFE_BROWSING_WEBLAYER_SAFE_BROWSING_BLOCKING_PAGE_FACTORY_H_
  5. #define WEBLAYER_BROWSER_SAFE_BROWSING_WEBLAYER_SAFE_BROWSING_BLOCKING_PAGE_FACTORY_H_
  6. #include "components/safe_browsing/content/browser/safe_browsing_blocking_page_factory.h"
  7. namespace weblayer {
  8. // Factory for creating SafeBrowsingBlockingPage.
  9. class WebLayerSafeBrowsingBlockingPageFactory
  10. : public safe_browsing::SafeBrowsingBlockingPageFactory {
  11. public:
  12. WebLayerSafeBrowsingBlockingPageFactory() = default;
  13. ~WebLayerSafeBrowsingBlockingPageFactory() override = default;
  14. // safe_browsing::SafeBrowsingBlockingPageFactory:
  15. safe_browsing::SafeBrowsingBlockingPage* CreateSafeBrowsingPage(
  16. safe_browsing::BaseUIManager* ui_manager,
  17. content::WebContents* web_contents,
  18. const GURL& main_frame_url,
  19. const safe_browsing::SafeBrowsingBlockingPage::UnsafeResourceList&
  20. unsafe_resources,
  21. bool should_trigger_reporting) override;
  22. };
  23. } // namespace weblayer
  24. #endif // WEBLAYER_BROWSER_SAFE_BROWSING_WEBLAYER_SAFE_BROWSING_BLOCKING_PAGE_FACTORY_H_