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

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

Issue 14566009: Add NetworkConnectionHandler class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address feedback, remove configuration. Created 7 years, 7 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) 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_DBUS_SHILL_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 typedef ShillClientHelper::StringCallback StringCallback; 35 typedef ShillClientHelper::StringCallback StringCallback;
36 typedef ShillClientHelper::BooleanCallback BooleanCallback; 36 typedef ShillClientHelper::BooleanCallback BooleanCallback;
37 37
38 // Interface for setting up devices, services, and technologies for testing. 38 // Interface for setting up devices, services, and technologies for testing.
39 // Accessed through GetTestInterface(), only implemented in the Stub Impl. 39 // Accessed through GetTestInterface(), only implemented in the Stub Impl.
40 class TestInterface { 40 class TestInterface {
41 public: 41 public:
42 virtual void AddDevice(const std::string& device_path) = 0; 42 virtual void AddDevice(const std::string& device_path) = 0;
43 virtual void RemoveDevice(const std::string& device_path) = 0; 43 virtual void RemoveDevice(const std::string& device_path) = 0;
44 virtual void ClearDevices() = 0; 44 virtual void ClearDevices() = 0;
45 virtual void AddService(const std::string& service_path,
46 bool add_to_watch_list) = 0;
47 virtual void AddServiceAtIndex(const std::string& service_path,
48 size_t index,
49 bool add_to_watch_list) = 0;
50 virtual void RemoveService(const std::string& service_path) = 0;
51 virtual void ClearServices() = 0;
52 virtual void AddTechnology(const std::string& type, bool enabled) = 0; 45 virtual void AddTechnology(const std::string& type, bool enabled) = 0;
53 virtual void RemoveTechnology(const std::string& type) = 0; 46 virtual void RemoveTechnology(const std::string& type) = 0;
54 virtual void SetTechnologyInitializing(const std::string& type, 47 virtual void SetTechnologyInitializing(const std::string& type,
55 bool initializing) = 0; 48 bool initializing) = 0;
56 virtual void AddGeoNetwork(const std::string& technology, 49 virtual void AddGeoNetwork(const std::string& technology,
57 const base::DictionaryValue& network) = 0; 50 const base::DictionaryValue& network) = 0;
58 51
59 // Used to reset all properties; does not notify observers. 52 // Used to reset all properties; does not notify observers.
60 virtual void ClearProperties() = 0; 53 virtual void ClearProperties() = 0;
61 54
55 // Move an existing service to a different index, e.g. to simulate the
56 // result of a successful connect.
57 virtual void MoveServiceToIndex(const std::string& service_path,
58 size_t index,
59 bool add_to_watch_list) = 0;
60
61 // Add/Remove/ClearService should only be called from ShillServiceClient.
62 virtual void AddManagerService(const std::string& service_path,
63 bool add_to_watch_list) = 0;
64 virtual void RemoveManagerService(const std::string& service_path) = 0;
65 virtual void ClearManagerServices() = 0;
66
62 protected: 67 protected:
63 virtual ~TestInterface() {} 68 virtual ~TestInterface() {}
64 }; 69 };
65 70
66 // Properties used to verify the origin device. 71 // Properties used to verify the origin device.
67 struct VerificationProperties { 72 struct VerificationProperties {
68 VerificationProperties(); 73 VerificationProperties();
69 ~VerificationProperties(); 74 ~VerificationProperties();
70 75
71 // A string containing a PEM-encoded X.509 certificate for use in verifying 76 // A string containing a PEM-encoded X.509 certificate for use in verifying
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // Create() should be used instead. 213 // Create() should be used instead.
209 ShillManagerClient(); 214 ShillManagerClient();
210 215
211 private: 216 private:
212 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); 217 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient);
213 }; 218 };
214 219
215 } // namespace chromeos 220 } // namespace chromeos
216 221
217 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ 222 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698