blob: 9eaac1a1561d8ba926433992e3fd5ac24abed0f3 [file] [log] [blame]
Mugdha Lakhani83baeab2020-03-20 13:08:231// 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
5#ifndef CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_DELEGATE_H_
6#define CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_DELEGATE_H_
7
8#include <string>
9#include "components/content_settings/core/common/content_settings_types.h"
10
11// PageInfoDelegate allows an embedder to customize PageInfo logic.
12class PageInfoDelegate {
13 public:
14 virtual ~PageInfoDelegate() = default;
15
16 // Whether the content setting of type |type| has changed via Page Info UI.
17 virtual bool HasContentSettingChangedViaPageInfo(
18 ContentSettingsType type) = 0;
Mugdha Lakhanib3dcbb92020-03-20 18:39:1819 virtual int GetFirstPartyAllowedCookiesCount(const GURL& site_url) = 0;
20 virtual int GetFirstPartyBlockedCookiesCount(const GURL& site_url) = 0;
21 virtual int GetThirdPartyAllowedCookiesCount(const GURL& site_url) = 0;
22 virtual int GetThirdPartyBlockedCookiesCount(const GURL& site_url) = 0;
Mugdha Lakhani83baeab2020-03-20 13:08:2323};
24
25#endif // CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_DELEGATE_H_