OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_ |
6 #define CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 void AddProfile(const NetworkProfile& profile); | 74 void AddProfile(const NetworkProfile& profile); |
75 void RemoveProfile(const std::string& profile_path); | 75 void RemoveProfile(const std::string& profile_path); |
76 | 76 |
77 private: | 77 private: |
78 ProfileList profiles_; | 78 ProfileList profiles_; |
79 | 79 |
80 // Contains the profile paths for which properties were requested. Once the | 80 // Contains the profile paths for which properties were requested. Once the |
81 // properties are retrieved and the path is still in this set, a new profile | 81 // properties are retrieved and the path is still in this set, a new profile |
82 // object is created. | 82 // object is created. |
83 std::set<std::string> pending_profile_creations_; | 83 std::set<std::string> pending_profile_creations_; |
84 base::ObserverList<NetworkProfileObserver> observers_; | 84 base::ObserverList<NetworkProfileObserver, true> observers_; |
85 | 85 |
86 // For Shill client callbacks | 86 // For Shill client callbacks |
87 base::WeakPtrFactory<NetworkProfileHandler> weak_ptr_factory_; | 87 base::WeakPtrFactory<NetworkProfileHandler> weak_ptr_factory_; |
88 | 88 |
89 private: | 89 private: |
90 DISALLOW_COPY_AND_ASSIGN(NetworkProfileHandler); | 90 DISALLOW_COPY_AND_ASSIGN(NetworkProfileHandler); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace chromeos | 93 } // namespace chromeos |
94 | 94 |
95 #endif // CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_ | 95 #endif // CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_ |
OLD | NEW |