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

Side by Side Diff: chromeos/network/managed_network_configuration_handler.h

Issue 2387783002: Remove stl_util's deletion functions from chromeos/. (Closed)
Patch Set: armansito Created 4 years, 2 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) 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_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ 5 #ifndef CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_
6 #define CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ 6 #define CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // 45 //
46 // Note on callbacks: Because all the functions here are meant to be 46 // Note on callbacks: Because all the functions here are meant to be
47 // asynchronous, they all take a |callback| of some type, and an 47 // asynchronous, they all take a |callback| of some type, and an
48 // |error_callback|. When the operation succeeds, |callback| will be called, and 48 // |error_callback|. When the operation succeeds, |callback| will be called, and
49 // when it doesn't, |error_callback| will be called with information about the 49 // when it doesn't, |error_callback| will be called with information about the
50 // error, including a symbolic name for the error and often some error message 50 // error, including a symbolic name for the error and often some error message
51 // that is suitable for logging. None of the error message text is meant for 51 // that is suitable for logging. None of the error message text is meant for
52 // user consumption. 52 // user consumption.
53 class CHROMEOS_EXPORT ManagedNetworkConfigurationHandler { 53 class CHROMEOS_EXPORT ManagedNetworkConfigurationHandler {
54 public: 54 public:
55 using GuidToPolicyMap = std::map<std::string, const base::DictionaryValue*>; 55 using GuidToPolicyMap =
56 std::map<std::string, std::unique_ptr<base::DictionaryValue>>;
56 57
57 virtual ~ManagedNetworkConfigurationHandler(); 58 virtual ~ManagedNetworkConfigurationHandler();
58 59
59 virtual void AddObserver(NetworkPolicyObserver* observer) = 0; 60 virtual void AddObserver(NetworkPolicyObserver* observer) = 0;
60 virtual void RemoveObserver(NetworkPolicyObserver* observer) = 0; 61 virtual void RemoveObserver(NetworkPolicyObserver* observer) = 0;
61 62
62 // Provides the properties of the network with |service_path| to |callback|. 63 // Provides the properties of the network with |service_path| to |callback|.
63 // |userhash| is used to set the "Source" property. If not provided then 64 // |userhash| is used to set the "Source" property. If not provided then
64 // user polcies will be ignored. 65 // user policies will be ignored.
65 virtual void GetProperties( 66 virtual void GetProperties(
66 const std::string& userhash, 67 const std::string& userhash,
67 const std::string& service_path, 68 const std::string& service_path,
68 const network_handler::DictionaryResultCallback& callback, 69 const network_handler::DictionaryResultCallback& callback,
69 const network_handler::ErrorCallback& error_callback) = 0; 70 const network_handler::ErrorCallback& error_callback) = 0;
70 71
71 // Provides the managed properties of the network with |service_path| to 72 // Provides the managed properties of the network with |service_path| to
72 // |callback|. |userhash| is used to ensure that the user's policy is 73 // |callback|. |userhash| is used to ensure that the user's policy is
73 // already applied, and to set the "Source" property (see note for 74 // already applied, and to set the "Source" property (see note for
74 // GetProperties). 75 // GetProperties).
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 const std::string& guid, 152 const std::string& guid,
152 const std::string& profile_path) const = 0; 153 const std::string& profile_path) const = 0;
153 154
154 private: 155 private:
155 DISALLOW_ASSIGN(ManagedNetworkConfigurationHandler); 156 DISALLOW_ASSIGN(ManagedNetworkConfigurationHandler);
156 }; 157 };
157 158
158 } // namespace chromeos 159 } // namespace chromeos
159 160
160 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ 161 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_shill_profile_client.cc ('k') | chromeos/network/managed_network_configuration_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698