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

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

Issue 13957012: Adding a NetworkProfileHandler used by ManagedNetworkConfigurationHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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
« no previous file with comments | « chromeos/dbus/shill_manager_client_stub.cc ('k') | chromeos/dbus/shill_profile_client.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_DBUS_SHILL_PROFILE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_H_
6 #define CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_H_ 6 #define CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 27 matching lines...) Expand all
38 public: 38 public:
39 typedef ShillClientHelper::PropertyChangedHandler PropertyChangedHandler; 39 typedef ShillClientHelper::PropertyChangedHandler PropertyChangedHandler;
40 typedef ShillClientHelper::DictionaryValueCallbackWithoutStatus 40 typedef ShillClientHelper::DictionaryValueCallbackWithoutStatus
41 DictionaryValueCallbackWithoutStatus; 41 DictionaryValueCallbackWithoutStatus;
42 typedef ShillClientHelper::ErrorCallback ErrorCallback; 42 typedef ShillClientHelper::ErrorCallback ErrorCallback;
43 43
44 // Interface for setting up services for testing. Accessed through 44 // Interface for setting up services for testing. Accessed through
45 // GetTestInterface(), only implemented in the stub implementation. 45 // GetTestInterface(), only implemented in the stub implementation.
46 class TestInterface { 46 class TestInterface {
47 public: 47 public:
48 virtual void AddProfile(const std::string& profile_path) = 0; 48 virtual void AddProfile(const std::string& profile_path,
49 const std::string& userhash) = 0;
49 virtual void AddEntry(const std::string& profile_path, 50 virtual void AddEntry(const std::string& profile_path,
50 const std::string& entry_path, 51 const std::string& entry_path,
51 const base::DictionaryValue& properties) = 0; 52 const base::DictionaryValue& properties) = 0;
52 virtual bool AddService(const std::string& service_path) = 0; 53 virtual bool AddService(const std::string& service_path) = 0;
53 54
54 protected: 55 protected:
55 virtual ~TestInterface() {} 56 virtual ~TestInterface() {}
56 }; 57 };
57 58
58 virtual ~ShillProfileClient(); 59 virtual ~ShillProfileClient();
59 60
60 // Factory function, creates a new instance which is owned by the caller. 61 // Factory function, creates a new instance which is owned by the caller.
61 // For normal usage, access the singleton via DBusThreadManager::Get(). 62 // For normal usage, access the singleton via DBusThreadManager::Get().
62 static ShillProfileClient* Create(DBusClientImplementationType type, 63 static ShillProfileClient* Create(DBusClientImplementationType type,
63 dbus::Bus* bus); 64 dbus::Bus* bus);
64 65
65 // Adds a property changed |observer| for the profile at |profile_path|. 66 // Adds a property changed |observer| for the profile at |profile_path|.
66 virtual void AddPropertyChangedObserver( 67 virtual void AddPropertyChangedObserver(
67 const dbus::ObjectPath& profile_path, 68 const dbus::ObjectPath& profile_path,
68 ShillPropertyChangedObserver* observer) = 0; 69 ShillPropertyChangedObserver* observer) = 0;
69 70
70 // Removes a property changed |observer| for the profile at |profile_path|. 71 // Removes a property changed |observer| for the profile at |profile_path|.
71 virtual void RemovePropertyChangedObserver( 72 virtual void RemovePropertyChangedObserver(
72 const dbus::ObjectPath& profile_path, 73 const dbus::ObjectPath& profile_path,
73 ShillPropertyChangedObserver* observer) = 0; 74 ShillPropertyChangedObserver* observer) = 0;
(...skipping 26 matching lines...) Expand all
100 // Create() should be used instead. 101 // Create() should be used instead.
101 ShillProfileClient(); 102 ShillProfileClient();
102 103
103 private: 104 private:
104 DISALLOW_COPY_AND_ASSIGN(ShillProfileClient); 105 DISALLOW_COPY_AND_ASSIGN(ShillProfileClient);
105 }; 106 };
106 107
107 } // namespace chromeos 108 } // namespace chromeos
108 109
109 #endif // CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_H_ 110 #endif // CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/shill_manager_client_stub.cc ('k') | chromeos/dbus/shill_profile_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698