fix brave/brave-browser#31746 We'll use four types of banner and select one type via griffin. When user choose "maybe later" button, promotion entry is not shown till 3d passed and then show it again.
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
/* Copyright (c) 2022 The Brave Authors. All rights reserved.
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef BRAVE_COMPONENTS_BRAVE_SEARCH_CONVERSION_UTILS_H_
|
|
#define BRAVE_COMPONENTS_BRAVE_SEARCH_CONVERSION_UTILS_H_
|
|
|
|
#include <string>
|
|
|
|
class GURL;
|
|
class PrefRegistrySimple;
|
|
class PrefService;
|
|
class TemplateURLService;
|
|
|
|
namespace brave_search_conversion {
|
|
|
|
enum class ConversionType;
|
|
|
|
bool IsNTPPromotionEnabled(PrefService* prefs, TemplateURLService* service);
|
|
|
|
// Promotion type from omnibox.
|
|
ConversionType GetConversionType(PrefService* prefs,
|
|
TemplateURLService* service);
|
|
void RegisterPrefs(PrefRegistrySimple* registry);
|
|
void SetDismissed(PrefService* prefs);
|
|
void SetMaybeLater(PrefService* prefs);
|
|
GURL GetPromoURL(const std::u16string& search_term);
|
|
GURL GetPromoURL(const std::string& search_term);
|
|
|
|
// True when omnibox conversion features are enabled.
|
|
bool IsBraveSearchConversionFeatureEnabled();
|
|
|
|
} // namespace brave_search_conversion
|
|
|
|
#endif // BRAVE_COMPONENTS_BRAVE_SEARCH_CONVERSION_UTILS_H_
|