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

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

Issue 22327005: Automatically resolve ClientCertificatePatterns. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed yet another issue with CertLoader. Created 7 years, 4 months 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 | Annotate | Revision Log
« 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const std::string& userhash) const; 53 const std::string& userhash) const;
54 54
55 // Returns the first profile entry with a non-empty userhash. 55 // Returns the first profile entry with a non-empty userhash.
56 // TODO(stevenjb): Replace with GetProfileForUserhash() with the correct 56 // TODO(stevenjb): Replace with GetProfileForUserhash() with the correct
57 // userhash. 57 // userhash.
58 const NetworkProfile* GetDefaultUserProfile() const; 58 const NetworkProfile* GetDefaultUserProfile() const;
59 59
60 static const char kSharedProfilePath[]; 60 static const char kSharedProfilePath[];
61 61
62 protected: 62 protected:
63 friend class ClientCertResolverTest;
63 friend class NetworkHandler; 64 friend class NetworkHandler;
64 NetworkProfileHandler(); 65 NetworkProfileHandler();
65 66
66 // Add ShillManagerClient property observer and request initial list. 67 // Add ShillManagerClient property observer and request initial list.
67 // Sets |network_state_handler_| for triggering Manager updates (can be NULL). 68 // Sets |network_state_handler_| for triggering Manager updates (can be NULL).
68 void Init(NetworkStateHandler* network_state_handler); 69 void Init(NetworkStateHandler* network_state_handler);
69 70
70 void AddProfile(const NetworkProfile& profile); 71 void AddProfile(const NetworkProfile& profile);
71 void RemoveProfile(const std::string& profile_path); 72 void RemoveProfile(const std::string& profile_path);
72 73
73 private: 74 private:
74 NetworkStateHandler* network_state_handler_; 75 NetworkStateHandler* network_state_handler_;
75 ProfileList profiles_; 76 ProfileList profiles_;
76 ObserverList<NetworkProfileObserver> observers_; 77 ObserverList<NetworkProfileObserver> observers_;
77 78
78 // For Shill client callbacks 79 // For Shill client callbacks
79 base::WeakPtrFactory<NetworkProfileHandler> weak_ptr_factory_; 80 base::WeakPtrFactory<NetworkProfileHandler> weak_ptr_factory_;
80 81
81 private: 82 private:
82 DISALLOW_COPY_AND_ASSIGN(NetworkProfileHandler); 83 DISALLOW_COPY_AND_ASSIGN(NetworkProfileHandler);
83 }; 84 };
84 85
85 } // namespace chromeos 86 } // namespace chromeos
86 87
87 #endif // CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_ 88 #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