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

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

Issue 15899015: Add CheckPortalList manager property to NetworkStateHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: force manager property update in shill manager client stub implementation Created 7 years, 6 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_state_handler.cc ('k') | chromeos/network/shill_property_handler.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SHILL_PROPERTY_HANDLER_H_ 5 #ifndef CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_
6 #define CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ 6 #define CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 const std::string& service_path, 64 const std::string& service_path,
65 const std::string& key, 65 const std::string& key,
66 const base::Value& value) = 0; 66 const base::Value& value) = 0;
67 67
68 // Called when a property for a watched device has changed. 68 // Called when a property for a watched device has changed.
69 virtual void UpdateDeviceProperty( 69 virtual void UpdateDeviceProperty(
70 const std::string& device_path, 70 const std::string& device_path,
71 const std::string& key, 71 const std::string& key,
72 const base::Value& value) = 0; 72 const base::Value& value) = 0;
73 73
74 // Called when the list of devices with portal check enabled changes.
75 virtual void CheckPortalListChanged(
76 const std::string& check_portal_list) = 0;
77
74 // Called when one or more manager properties (e.g. a technology list) 78 // Called when one or more manager properties (e.g. a technology list)
75 // changes. 79 // changes.
76 virtual void NotifyManagerPropertyChanged() = 0; 80 virtual void NotifyManagerPropertyChanged() = 0;
77 81
78 // Called when a managed state list has changed, after properties for any 82 // Called when a managed state list has changed, after properties for any
79 // new entries in the list have been received and 83 // new entries in the list have been received and
80 // UpdateManagedStateProperties has been called for each new entry. 84 // UpdateManagedStateProperties has been called for each new entry.
81 virtual void ManagedStateListChanged(ManagedState::ManagedType type) = 0; 85 virtual void ManagedStateListChanged(ManagedState::ManagedType type) = 0;
82 86
83 protected: 87 protected:
(...skipping 12 matching lines...) Expand all
96 bool IsTechnologyEnabling(const std::string& technology) const; 100 bool IsTechnologyEnabling(const std::string& technology) const;
97 bool IsTechnologyUninitialized(const std::string& technology) const; 101 bool IsTechnologyUninitialized(const std::string& technology) const;
98 102
99 // Asynchronously sets the enabled state for |technology|. 103 // Asynchronously sets the enabled state for |technology|.
100 // Note: Modifes Manager state. Calls |error_callback| on failure. 104 // Note: Modifes Manager state. Calls |error_callback| on failure.
101 void SetTechnologyEnabled( 105 void SetTechnologyEnabled(
102 const std::string& technology, 106 const std::string& technology,
103 bool enabled, 107 bool enabled,
104 const network_handler::ErrorCallback& error_callback); 108 const network_handler::ErrorCallback& error_callback);
105 109
110 // Sets the list of devices on which portal check is enabled.
111 void SetCheckPortalList(const std::string& check_portal_list);
112
106 // Requests an immediate network scan. 113 // Requests an immediate network scan.
107 void RequestScan() const; 114 void RequestScan() const;
108 115
109 // Calls Manager.ConnectToBestServices(). 116 // Calls Manager.ConnectToBestServices().
110 void ConnectToBestServices() const; 117 void ConnectToBestServices() const;
111 118
112 // Requests all properties for the service or device (called for new items). 119 // Requests all properties for the service or device (called for new items).
113 void RequestProperties(ManagedState::ManagedType type, 120 void RequestProperties(ManagedState::ManagedType type,
114 const std::string& path); 121 const std::string& path);
115 122
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 std::set<std::string> enabling_technologies_; 201 std::set<std::string> enabling_technologies_;
195 std::set<std::string> uninitialized_technologies_; 202 std::set<std::string> uninitialized_technologies_;
196 203
197 DISALLOW_COPY_AND_ASSIGN(ShillPropertyHandler); 204 DISALLOW_COPY_AND_ASSIGN(ShillPropertyHandler);
198 }; 205 };
199 206
200 } // namespace internal 207 } // namespace internal
201 } // namespace chromeos 208 } // namespace chromeos
202 209
203 #endif // CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_ 210 #endif // CHROMEOS_NETWORK_SHILL_PROPERTY_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/network_state_handler.cc ('k') | chromeos/network/shill_property_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698