Popular sites on the NTP: re-download popular suggestions once per Chrome run
[chromium-blink-merge.git] / chrome / browser / profiles / avatar_menu_actions_desktop.h
bloba015c37fed70e3d512c4547629d0f08e87e054aa
1 // Copyright 2013 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_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_
6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_
8 #include <string>
10 #include "chrome/browser/profiles/avatar_menu_actions.h"
11 #include "chrome/browser/profiles/profile_metrics.h"
13 class Profile;
15 // This interface controls the behavior of avatar menu actions.
16 class AvatarMenuActionsDesktop : public AvatarMenuActions {
17 public:
18 AvatarMenuActionsDesktop();
19 ~AvatarMenuActionsDesktop() override;
21 // AvatarMenuActions overrides:
22 void AddNewProfile(ProfileMetrics::ProfileAdd type) override;
23 void EditProfile(Profile* profile, size_t index) override;
24 bool ShouldShowAddNewProfileLink() const override;
25 bool ShouldShowEditProfileLink() const override;
26 void ActiveBrowserChanged(Browser* browser) override;
28 private:
29 // Browser in which this avatar menu resides. Weak.
30 Browser* browser_;
32 // Special "override" logout URL used to let tests work.
33 std::string logout_override_;
35 DISALLOW_COPY_AND_ASSIGN(AvatarMenuActionsDesktop);
38 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_