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

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

Issue 181413006: Replace misc. network stub flags with more flexible ones (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Elim. shill_stub_helper and move functions to clients. Created 6 years, 9 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual void AddManagerService(const std::string& service_path, 61 virtual void AddManagerService(const std::string& service_path,
62 bool add_to_visible_list, 62 bool add_to_visible_list,
63 bool add_to_watch_list) = 0; 63 bool add_to_watch_list) = 0;
64 virtual void RemoveManagerService(const std::string& service_path) = 0; 64 virtual void RemoveManagerService(const std::string& service_path) = 0;
65 virtual void ClearManagerServices() = 0; 65 virtual void ClearManagerServices() = 0;
66 66
67 // Called by ShillServiceClient when a service's State property changes. 67 // Called by ShillServiceClient when a service's State property changes.
68 // Services are sorted first by Active vs. Inactive State, then by Type. 68 // Services are sorted first by Active vs. Inactive State, then by Type.
69 virtual void SortManagerServices() = 0; 69 virtual void SortManagerServices() = 0;
70 70
71 // Returns the interactive delay specified on the command line, 0 for none.
72 virtual int GetInteractiveDelay() const = 0;
73
74 // Returns the initial state value for the default network matching |type|.
75 // Note: these do not map directly to Service.State values, see
76 // FakeShillManagerClient::ParseOption for details. Defaults to
77 // shill::kStateOffline (unavailable).
78 virtual std::string GetInitialState(const std::string& type) const = 0;
79
71 protected: 80 protected:
72 virtual ~TestInterface() {} 81 virtual ~TestInterface() {}
73 }; 82 };
74 83
75 // Properties used to verify the origin device. 84 // Properties used to verify the origin device.
76 struct VerificationProperties { 85 struct VerificationProperties {
77 VerificationProperties(); 86 VerificationProperties();
78 ~VerificationProperties(); 87 ~VerificationProperties();
79 88
80 // A string containing a PEM-encoded X.509 certificate for use in verifying 89 // A string containing a PEM-encoded X.509 certificate for use in verifying
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // Create() should be used instead. 219 // Create() should be used instead.
211 ShillManagerClient(); 220 ShillManagerClient();
212 221
213 private: 222 private:
214 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); 223 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient);
215 }; 224 };
216 225
217 } // namespace chromeos 226 } // namespace chromeos
218 227
219 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ 228 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698