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

Side by Side Diff: chromeos/dbus/shill_manager_client_stub.h

Issue 14137017: Add TechnologyState to NetworkStateHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
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_DBUS_SHILL_MANAGER_CLIENT_STUB_H_ 5 #ifndef CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_STUB_H_
6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_STUB_H_ 6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_STUB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 private: 105 private:
106 void AddServiceToWatchList(const std::string& service_path); 106 void AddServiceToWatchList(const std::string& service_path);
107 void SetDefaultProperties(); 107 void SetDefaultProperties();
108 void PassStubProperties(const DictionaryValueCallback& callback) const; 108 void PassStubProperties(const DictionaryValueCallback& callback) const;
109 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; 109 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const;
110 void CallNotifyObserversPropertyChanged(const std::string& property, 110 void CallNotifyObserversPropertyChanged(const std::string& property,
111 int delay_ms); 111 int delay_ms);
112 void NotifyObserversPropertyChanged(const std::string& property); 112 void NotifyObserversPropertyChanged(const std::string& property);
113 base::ListValue* GetListProperty(const std::string& property); 113 base::ListValue* GetListProperty(const std::string& property);
114 bool TechnologyEnabled(const std::string& type) const; 114 bool TechnologyEnabled(const std::string& type) const;
115 void SetTechnologyEnabled(const std::string& type,
116 const base::Closure& callback,
117 bool enabled);
115 base::ListValue* GetEnabledServiceList(const std::string& property) const; 118 base::ListValue* GetEnabledServiceList(const std::string& property) const;
116 119
117 // Dictionary of property name -> property value 120 // Dictionary of property name -> property value
118 base::DictionaryValue stub_properties_; 121 base::DictionaryValue stub_properties_;
119 // Dictionary of technology -> list of property dictionaries 122 // Dictionary of technology -> list of property dictionaries
120 base::DictionaryValue stub_geo_networks_; 123 base::DictionaryValue stub_geo_networks_;
121 124
122 ObserverList<ShillPropertyChangedObserver> observer_list_; 125 ObserverList<ShillPropertyChangedObserver> observer_list_;
123 126
124 // Note: This should remain the last member so it'll be destroyed and 127 // Note: This should remain the last member so it'll be destroyed and
125 // invalidate its weak pointers before any other members are destroyed. 128 // invalidate its weak pointers before any other members are destroyed.
126 base::WeakPtrFactory<ShillManagerClientStub> weak_ptr_factory_; 129 base::WeakPtrFactory<ShillManagerClientStub> weak_ptr_factory_;
127 130
128 DISALLOW_COPY_AND_ASSIGN(ShillManagerClientStub); 131 DISALLOW_COPY_AND_ASSIGN(ShillManagerClientStub);
129 }; 132 };
130 133
131 } // namespace chromeos 134 } // namespace chromeos
132 135
133 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_STUB_H_ 136 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698