123456789101112131415161718192021222324252627282930 |
- // Copyright 2020 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #ifndef COMPONENTS_PAGE_INFO_PAGE_INFO_UI_DELEGATE_H_
- #define COMPONENTS_PAGE_INFO_PAGE_INFO_UI_DELEGATE_H_
- #include "build/build_config.h"
- #include "components/content_settings/core/common/content_settings_types.h"
- #include "components/permissions/permission_result.h"
- #include "third_party/abseil-cpp/absl/types/optional.h"
- namespace blink {
- enum class PermissionType;
- }
- class PageInfoUiDelegate {
- public:
- virtual ~PageInfoUiDelegate() = default;
- #if !BUILDFLAG(IS_ANDROID)
- virtual bool IsBlockAutoPlayEnabled() = 0;
- virtual bool IsMultipleTabsOpen() = 0;
- #endif
- virtual permissions::PermissionResult GetPermissionResult(
- blink::PermissionType permission) = 0;
- virtual absl::optional<permissions::PermissionResult> GetEmbargoResult(
- ContentSettingsType type) = 0;
- };
- #endif // COMPONENTS_PAGE_INFO_PAGE_INFO_UI_DELEGATE_H_
|