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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 const std::string& userhash) const; | 54 const std::string& userhash) const; |
55 | 55 |
56 // Returns the first profile entry with a non-empty userhash. | 56 // Returns the first profile entry with a non-empty userhash. |
57 // TODO(stevenjb): Replace with GetProfileForUserhash() with the correct | 57 // TODO(stevenjb): Replace with GetProfileForUserhash() with the correct |
58 // userhash. | 58 // userhash. |
59 const NetworkProfile* GetDefaultUserProfile() const; | 59 const NetworkProfile* GetDefaultUserProfile() const; |
60 | 60 |
61 static std::string GetSharedProfilePath(); | 61 static std::string GetSharedProfilePath(); |
62 | 62 |
63 protected: | 63 protected: |
| 64 friend class AutoConnectHandlerTest; |
64 friend class ClientCertResolverTest; | 65 friend class ClientCertResolverTest; |
65 friend class NetworkConnectionHandlerTest; | 66 friend class NetworkConnectionHandlerTest; |
66 friend class NetworkHandler; | 67 friend class NetworkHandler; |
67 NetworkProfileHandler(); | 68 NetworkProfileHandler(); |
68 | 69 |
69 // Add ShillManagerClient property observer and request initial list. | 70 // Add ShillManagerClient property observer and request initial list. |
70 void Init(); | 71 void Init(); |
71 | 72 |
72 void AddProfile(const NetworkProfile& profile); | 73 void AddProfile(const NetworkProfile& profile); |
73 void RemoveProfile(const std::string& profile_path); | 74 void RemoveProfile(const std::string& profile_path); |
(...skipping 10 matching lines...) Expand all Loading... |
84 // For Shill client callbacks | 85 // For Shill client callbacks |
85 base::WeakPtrFactory<NetworkProfileHandler> weak_ptr_factory_; | 86 base::WeakPtrFactory<NetworkProfileHandler> weak_ptr_factory_; |
86 | 87 |
87 private: | 88 private: |
88 DISALLOW_COPY_AND_ASSIGN(NetworkProfileHandler); | 89 DISALLOW_COPY_AND_ASSIGN(NetworkProfileHandler); |
89 }; | 90 }; |
90 | 91 |
91 } // namespace chromeos | 92 } // namespace chromeos |
92 | 93 |
93 #endif // CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_ | 94 #endif // CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_ |
OLD | NEW |