OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_CHROMEOS_NETWORK_VPN_DELEGATE_H | 5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_VPN_DELEGATE_H |
6 #define ASH_SYSTEM_CHROMEOS_NETWORK_VPN_DELEGATE_H | 6 #define ASH_SYSTEM_CHROMEOS_NETWORK_VPN_DELEGATE_H |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 void AddObserver(Observer* observer); | 85 void AddObserver(Observer* observer); |
86 void RemoveObserver(Observer* observer); | 86 void RemoveObserver(Observer* observer); |
87 | 87 |
88 protected: | 88 protected: |
89 // Notify observers that the list of VPN providers enabled in the primary | 89 // Notify observers that the list of VPN providers enabled in the primary |
90 // user's profile has changed. | 90 // user's profile has changed. |
91 void NotifyObservers(); | 91 void NotifyObservers(); |
92 | 92 |
93 private: | 93 private: |
94 ObserverList<Observer, true> observer_list_; | 94 base::ObserverList<Observer, true> observer_list_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(VPNDelegate); | 96 DISALLOW_COPY_AND_ASSIGN(VPNDelegate); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace ash | 99 } // namespace ash |
100 | 100 |
101 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_VPN_DELEGATE_H | 101 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_VPN_DELEGATE_H |
OLD | NEW |