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

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

Issue 2754903002: Prevent networkingPrivate.forgetNetwork from removing shared configs (Closed)
Patch Set: . Created 3 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
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/callback.h" 10 #include "base/callback.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // Copies properties from the ShillServiceClient entry matching 66 // Copies properties from the ShillServiceClient entry matching
67 // |service_path| to the profile entry matching |profile_path|. Returns 67 // |service_path| to the profile entry matching |profile_path|. Returns
68 // false if no Service entry exits or if no Profile entry exists. 68 // false if no Service entry exits or if no Profile entry exists.
69 virtual bool UpdateService(const std::string& profile_path, 69 virtual bool UpdateService(const std::string& profile_path,
70 const std::string& service_path) = 0; 70 const std::string& service_path) = 0;
71 71
72 // Sets |profiles| to the current list of profile paths. 72 // Sets |profiles| to the current list of profile paths.
73 virtual void GetProfilePaths(std::vector<std::string>* profiles) = 0; 73 virtual void GetProfilePaths(std::vector<std::string>* profiles) = 0;
74 74
75 // Sets |profiles| to the current list of profile paths that contain an
76 // entry for |service_path|.
77 virtual void GetProfilePathsContainingService(
78 const std::string& service_path,
79 std::vector<std::string>* profiles) = 0;
80
75 // Sets |properties| to the entry for |service_path|, sets |profile_path| 81 // Sets |properties| to the entry for |service_path|, sets |profile_path|
76 // to the path of the profile with the entry, and returns true if the 82 // to the path of the profile with the entry, and returns true if the
77 // service exists in any profile. 83 // service exists in any profile.
78 virtual bool GetService(const std::string& service_path, 84 virtual bool GetService(const std::string& service_path,
79 std::string* profile_path, 85 std::string* profile_path,
80 base::DictionaryValue* properties) = 0; 86 base::DictionaryValue* properties) = 0;
81 87
82 // Remove all profile entries. 88 // Remove all profile entries.
83 virtual void ClearProfiles() = 0; 89 virtual void ClearProfiles() = 0;
84 90
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // Create() should be used instead. 141 // Create() should be used instead.
136 ShillProfileClient(); 142 ShillProfileClient();
137 143
138 private: 144 private:
139 DISALLOW_COPY_AND_ASSIGN(ShillProfileClient); 145 DISALLOW_COPY_AND_ASSIGN(ShillProfileClient);
140 }; 146 };
141 147
142 } // namespace chromeos 148 } // namespace chromeos
143 149
144 #endif // CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_H_ 150 #endif // CHROMEOS_DBUS_SHILL_PROFILE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698