popup_blocked_helper.h 766 B

123456789101112131415161718192021
  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 COMPONENTS_BLOCKED_CONTENT_ANDROID_POPUP_BLOCKED_HELPER_H_
  5. #define COMPONENTS_BLOCKED_CONTENT_ANDROID_POPUP_BLOCKED_HELPER_H_
  6. #include "base/callback.h"
  7. #include "components/content_settings/core/browser/host_content_settings_map.h"
  8. #include "url/gurl.h"
  9. namespace content {
  10. class WebContents;
  11. } // namespace content
  12. namespace blocked_content {
  13. void ShowBlockedPopups(content::WebContents* web_contents);
  14. bool PopupSettingManagedByPolicy(HostContentSettingsMap* map, const GURL& url);
  15. } // namespace blocked_content
  16. #endif // COMPONENTS_BLOCKED_CONTENT_ANDROID_POPUP_BLOCKED_HELPER_H_