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

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

Issue 799313004: chromeos networking: small cleanups (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@local-master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « chromeos/network/managed_network_configuration_handler_impl.cc ('k') | no next file » | 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_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_
6 #define CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_ 6 #define CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // 46 //
47 // |source| is provided to several of these methods so that it can be passed 47 // |source| is provided to several of these methods so that it can be passed
48 // along to any observers. See notes in network_configuration_observer.h. 48 // along to any observers. See notes in network_configuration_observer.h.
49 // 49 //
50 // Note on callbacks: Because all the functions here are meant to be 50 // Note on callbacks: Because all the functions here are meant to be
51 // asynchronous, they all take a |callback| of some type, and an 51 // asynchronous, they all take a |callback| of some type, and an
52 // |error_callback|. When the operation succeeds, |callback| will be called, and 52 // |error_callback|. When the operation succeeds, |callback| will be called, and
53 // when it doesn't, |error_callback| will be called with information about the 53 // when it doesn't, |error_callback| will be called with information about the
54 // error, including a symbolic name for the error and often some error message 54 // error, including a symbolic name for the error and often some error message
55 // that is suitable for logging. None of the error message text is meant for 55 // that is suitable for logging. None of the error message text is meant for
56 // user consumption. 56 // user consumption. Both |callback| and |error_callback| are permitted to be
57 // null callbacks.
57 class CHROMEOS_EXPORT NetworkConfigurationHandler 58 class CHROMEOS_EXPORT NetworkConfigurationHandler
58 : public base::SupportsWeakPtr<NetworkConfigurationHandler> { 59 : public base::SupportsWeakPtr<NetworkConfigurationHandler> {
59 public: 60 public:
60 ~NetworkConfigurationHandler(); 61 ~NetworkConfigurationHandler();
61 62
62 // Manages the observer list. 63 // Manages the observer list.
63 void AddObserver(NetworkConfigurationObserver* observer); 64 void AddObserver(NetworkConfigurationObserver* observer);
64 void RemoveObserver(NetworkConfigurationObserver* observer); 65 void RemoveObserver(NetworkConfigurationObserver* observer);
65 66
66 // Gets the properties of the network with id |service_path|. See note on 67 // Gets the properties of the network with id |service_path|. See note on
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 std::map<std::string, ProfileEntryDeleter*> profile_entry_deleters_; 196 std::map<std::string, ProfileEntryDeleter*> profile_entry_deleters_;
196 197
197 ObserverList<NetworkConfigurationObserver> observers_; 198 ObserverList<NetworkConfigurationObserver> observers_;
198 199
199 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationHandler); 200 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationHandler);
200 }; 201 };
201 202
202 } // namespace chromeos 203 } // namespace chromeos
203 204
204 #endif // CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_ 205 #endif // CHROMEOS_NETWORK_NETWORK_CONFIGURATION_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/managed_network_configuration_handler_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698