blob: 2b34b13a5f9ff2b6f70d478c4b5607d475e7b107 [file] [log] [blame]
// Copyright 2016 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 CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALLED_NOTIFICATION_H_
#define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALLED_NOTIFICATION_H_
#include <string>
#include "chrome/browser/profiles/profile.h"
#include "extensions/common/extension.h"
#include "ui/message_center/public/cpp/notification_delegate.h"
class ExtensionInstalledNotification
: public message_center::NotificationDelegate {
public:
static void Show(const extensions::Extension* extension, Profile* profile);
ExtensionInstalledNotification(const extensions::Extension* extension,
Profile* profile);
// NotificationDelegate override:
void Click(const base::Optional<int>& button_index,
const base::Optional<base::string16>& reply) override;
protected:
// This class is ref-counted.
~ExtensionInstalledNotification() override;
private:
const std::string extension_id_;
Profile* const profile_;
DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledNotification);
};
#endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALLED_NOTIFICATION_H_