Upload upstream chromium 108.0.5359.1
[platform/framework/web/chromium-efl.git] / components / page_info / page_info_ui_delegate.h
1 // Copyright 2020 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_PAGE_INFO_PAGE_INFO_UI_DELEGATE_H_
6 #define COMPONENTS_PAGE_INFO_PAGE_INFO_UI_DELEGATE_H_
7
8 #include "build/build_config.h"
9 #include "components/content_settings/core/common/content_settings_types.h"
10 #include "components/permissions/permission_result.h"
11 #include "third_party/abseil-cpp/absl/types/optional.h"
12
13 namespace blink {
14 enum class PermissionType;
15 }
16
17 class PageInfoUiDelegate {
18  public:
19   virtual ~PageInfoUiDelegate() = default;
20 #if !BUILDFLAG(IS_ANDROID)
21   virtual bool IsBlockAutoPlayEnabled() = 0;
22   virtual bool IsMultipleTabsOpen() = 0;
23 #endif
24   virtual permissions::PermissionResult GetPermissionResult(
25       blink::PermissionType permission) = 0;
26   virtual absl::optional<permissions::PermissionResult> GetEmbargoResult(
27       ContentSettingsType type) = 0;
28 };
29
30 #endif  // COMPONENTS_PAGE_INFO_PAGE_INFO_UI_DELEGATE_H_