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

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

Issue 1431563005: Handle prohibited technologies in device policy ONC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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_handler.cc ('k') | chromeos/network/network_state_handler.h » ('j') | 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 AutoConnectHandlerTest;
65 friend class ClientCertResolverTest; 65 friend class ClientCertResolverTest;
66 friend class NetworkConnectionHandlerTest; 66 friend class NetworkConnectionHandlerTest;
67 friend class NetworkHandler; 67 friend class NetworkHandler;
68 friend class ProhibitedTechnologiesHandlerTest;
68 NetworkProfileHandler(); 69 NetworkProfileHandler();
69 70
70 // Add ShillManagerClient property observer and request initial list. 71 // Add ShillManagerClient property observer and request initial list.
71 void Init(); 72 void Init();
72 73
73 void AddProfile(const NetworkProfile& profile); 74 void AddProfile(const NetworkProfile& profile);
74 void RemoveProfile(const std::string& profile_path); 75 void RemoveProfile(const std::string& profile_path);
75 76
76 private: 77 private:
77 ProfileList profiles_; 78 ProfileList profiles_;
78 79
79 // Contains the profile paths for which properties were requested. Once the 80 // Contains the profile paths for which properties were requested. Once the
80 // 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
81 // object is created. 82 // object is created.
82 std::set<std::string> pending_profile_creations_; 83 std::set<std::string> pending_profile_creations_;
83 base::ObserverList<NetworkProfileObserver> observers_; 84 base::ObserverList<NetworkProfileObserver> observers_;
84 85
85 // For Shill client callbacks 86 // For Shill client callbacks
86 base::WeakPtrFactory<NetworkProfileHandler> weak_ptr_factory_; 87 base::WeakPtrFactory<NetworkProfileHandler> weak_ptr_factory_;
87 88
88 private: 89 private:
89 DISALLOW_COPY_AND_ASSIGN(NetworkProfileHandler); 90 DISALLOW_COPY_AND_ASSIGN(NetworkProfileHandler);
90 }; 91 };
91 92
92 } // namespace chromeos 93 } // namespace chromeos
93 94
94 #endif // CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_ 95 #endif // CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/network_handler.cc ('k') | chromeos/network/network_state_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698