OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_SYSTEM_USER_USER_ACCOUNTS_DELEGATE_H_ | 5 #ifndef ASH_SYSTEM_USER_USER_ACCOUNTS_DELEGATE_H_ |
6 #define ASH_SYSTEM_USER_USER_ACCOUNTS_DELEGATE_H_ | 6 #define ASH_SYSTEM_USER_USER_ACCOUNTS_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // |account_id| that is not from list is no-op. | 48 // |account_id| that is not from list is no-op. |
49 virtual void DeleteAccount(const std::string& account_id) = 0; | 49 virtual void DeleteAccount(const std::string& account_id) = 0; |
50 | 50 |
51 // Launches a dialog which lets the user add a new account. | 51 // Launches a dialog which lets the user add a new account. |
52 virtual void LaunchAddAccountDialog() = 0; | 52 virtual void LaunchAddAccountDialog() = 0; |
53 | 53 |
54 protected: | 54 protected: |
55 void NotifyAccountListChanged(); | 55 void NotifyAccountListChanged(); |
56 | 56 |
57 private: | 57 private: |
58 ObserverList<Observer> observers_; | 58 base::ObserverList<Observer> observers_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(UserAccountsDelegate); | 60 DISALLOW_COPY_AND_ASSIGN(UserAccountsDelegate); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace tray | 63 } // namespace tray |
64 } // namespace ash | 64 } // namespace ash |
65 | 65 |
66 #endif // ASH_SYSTEM_USER_USER_ACCOUNTS_DELEGATE_H_ | 66 #endif // ASH_SYSTEM_USER_USER_ACCOUNTS_DELEGATE_H_ |
OLD | NEW |