1 // Copyright 2015 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.
5 #ifndef CHROME_BROWSER_BACKGROUND_BACKGROUND_TRIGGER_H_
6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_TRIGGER_H_
8 #include "base/strings/string16.h"
9 #include "ui/gfx/image/image_skia.h"
11 // Enables background mode if registered with the BackgroundModeManager.
12 class BackgroundTrigger
{
14 virtual ~BackgroundTrigger() {}
16 // The name to be displayed in the status icon menu and the installation
18 virtual base::string16
GetName() = 0;
20 // The icon to be displayed in the status icon menu.
21 virtual gfx::ImageSkia
* GetIcon() = 0;
23 // Handles a user's click on the status icon menu item.
24 virtual void OnMenuClick() = 0;
27 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_TRIGGER_H_