Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: chromeos/network/network_profile_handler.h

Issue 701863002: Trigger ConnectToBestNetwork in more cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get_network_configs_from_policy
Patch Set: Fixed destruction order in NetworkHandler. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/network/network_policy_observer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chromeos/network/network_policy_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698