page_info_ui_delegate.h 1019 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2020 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_PAGE_INFO_PAGE_INFO_UI_DELEGATE_H_
  5. #define COMPONENTS_PAGE_INFO_PAGE_INFO_UI_DELEGATE_H_
  6. #include "build/build_config.h"
  7. #include "components/content_settings/core/common/content_settings_types.h"
  8. #include "components/permissions/permission_result.h"
  9. #include "third_party/abseil-cpp/absl/types/optional.h"
  10. namespace blink {
  11. enum class PermissionType;
  12. }
  13. class PageInfoUiDelegate {
  14. public:
  15. virtual ~PageInfoUiDelegate() = default;
  16. #if !BUILDFLAG(IS_ANDROID)
  17. virtual bool IsBlockAutoPlayEnabled() = 0;
  18. virtual bool IsMultipleTabsOpen() = 0;
  19. #endif
  20. virtual permissions::PermissionResult GetPermissionResult(
  21. blink::PermissionType permission) = 0;
  22. virtual absl::optional<permissions::PermissionResult> GetEmbargoResult(
  23. ContentSettingsType type) = 0;
  24. };
  25. #endif // COMPONENTS_PAGE_INFO_PAGE_INFO_UI_DELEGATE_H_