Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / ui / ash / user_accounts_delegate_chromeos.h
blobc25663ef8bca844e21af8bc528686f97003b467e
1 // Copyright 2014 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_UI_ASH_USER_ACCOUNTS_DELEGATE_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_ASH_USER_ACCOUNTS_DELEGATE_CHROMEOS_H_
8 #include "ash/system/user/user_accounts_delegate.h"
9 #include "base/compiler_specific.h"
10 #include "base/macros.h"
11 #include "google_apis/gaia/oauth2_token_service.h"
13 class Profile;
15 namespace chromeos {
17 class UserAccountsDelegateChromeOS : public ash::tray::UserAccountsDelegate,
18 public OAuth2TokenService::Observer {
19 public:
20 explicit UserAccountsDelegateChromeOS(Profile* user_profile);
21 ~UserAccountsDelegateChromeOS() override;
23 // Overridden from ash::tray::UserAccountsDelegate:
24 std::string GetPrimaryAccountId() override;
25 std::vector<std::string> GetSecondaryAccountIds() override;
26 std::string GetAccountDisplayName(const std::string& account_id) override;
27 void DeleteAccount(const std::string& account_id) override;
28 void LaunchAddAccountDialog() override;
30 // Overridden from OAuth2TokenServiceObserver:
31 void OnRefreshTokenAvailable(const std::string& account_id) override;
32 void OnRefreshTokenRevoked(const std::string& account_id) override;
34 private:
35 Profile* user_profile_;
37 DISALLOW_COPY_AND_ASSIGN(UserAccountsDelegateChromeOS);
40 } // namespace chromeos
42 #endif // CHROME_BROWSER_UI_ASH_USER_ACCOUNTS_DELEGATE_CHROMEOS_H_