blob: 9c1e4fa36f1ae104a19b0914567517b76af3a6d5 [file] [log] [blame]
// Copyright 2018 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_NUX_SHOW_PROMO_DELEGATE_H_
#define COMPONENTS_NUX_SHOW_PROMO_DELEGATE_H_
#include <memory>
namespace bookmarks {
class BookmarkNode;
} // namespace bookmarks
class ShowPromoDelegate {
public:
virtual ~ShowPromoDelegate() = default;
// Shows a promotional popup for the specified bookmark node.
virtual void ShowForNode(const bookmarks::BookmarkNode* node) = 0;
// Return an instance of the promo delegate.
static std::unique_ptr<ShowPromoDelegate> CreatePromoDelegate(
int string_specifier);
};
#endif // COMPONENTS_NUX_SHOW_PROMO_DELEGATE_H_