blob: 9e9197ef148368f7359cf530c8180c389fbf294f [file] [log] [blame]
// Copyright 2015 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.
#include "base/strings/string16.h"
#include "ui/gfx/image/image_skia.h"
// Enables background mode if registered with the BackgroundModeManager.
class BackgroundTrigger {
virtual ~BackgroundTrigger() {}
// The name to be displayed in the status icon menu and the installation
// notification.
virtual base::string16 GetName() = 0;
// The icon to be displayed in the status icon menu.
virtual gfx::ImageSkia* GetIcon() = 0;
// Handles a user's click on the status icon menu item.
virtual void OnMenuClick() = 0;