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

Side by Side Diff: chromeos/dbus/shill_ipconfig_client.cc

Issue 628883002: replace OVERRIDE and FINAL with override and final in chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « chromeos/dbus/shill_device_client.cc ('k') | chromeos/dbus/shill_manager_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 #include "chromeos/dbus/shill_ipconfig_client.h" 5 #include "chromeos/dbus/shill_ipconfig_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 11 matching lines...) Expand all
22 22
23 // The ShillIPConfigClient implementation. 23 // The ShillIPConfigClient implementation.
24 class ShillIPConfigClientImpl : public ShillIPConfigClient { 24 class ShillIPConfigClientImpl : public ShillIPConfigClient {
25 public: 25 public:
26 ShillIPConfigClientImpl(); 26 ShillIPConfigClientImpl();
27 27
28 //////////////////////////////////// 28 ////////////////////////////////////
29 // ShillIPConfigClient overrides. 29 // ShillIPConfigClient overrides.
30 virtual void AddPropertyChangedObserver( 30 virtual void AddPropertyChangedObserver(
31 const dbus::ObjectPath& ipconfig_path, 31 const dbus::ObjectPath& ipconfig_path,
32 ShillPropertyChangedObserver* observer) OVERRIDE { 32 ShillPropertyChangedObserver* observer) override {
33 GetHelper(ipconfig_path)->AddPropertyChangedObserver(observer); 33 GetHelper(ipconfig_path)->AddPropertyChangedObserver(observer);
34 } 34 }
35 35
36 virtual void RemovePropertyChangedObserver( 36 virtual void RemovePropertyChangedObserver(
37 const dbus::ObjectPath& ipconfig_path, 37 const dbus::ObjectPath& ipconfig_path,
38 ShillPropertyChangedObserver* observer) OVERRIDE { 38 ShillPropertyChangedObserver* observer) override {
39 GetHelper(ipconfig_path)->RemovePropertyChangedObserver(observer); 39 GetHelper(ipconfig_path)->RemovePropertyChangedObserver(observer);
40 } 40 }
41 virtual void Refresh(const dbus::ObjectPath& ipconfig_path, 41 virtual void Refresh(const dbus::ObjectPath& ipconfig_path,
42 const VoidDBusMethodCallback& callback) OVERRIDE; 42 const VoidDBusMethodCallback& callback) override;
43 virtual void GetProperties(const dbus::ObjectPath& ipconfig_path, 43 virtual void GetProperties(const dbus::ObjectPath& ipconfig_path,
44 const DictionaryValueCallback& callback) OVERRIDE; 44 const DictionaryValueCallback& callback) override;
45 virtual void SetProperty(const dbus::ObjectPath& ipconfig_path, 45 virtual void SetProperty(const dbus::ObjectPath& ipconfig_path,
46 const std::string& name, 46 const std::string& name,
47 const base::Value& value, 47 const base::Value& value,
48 const VoidDBusMethodCallback& callback) OVERRIDE; 48 const VoidDBusMethodCallback& callback) override;
49 virtual void ClearProperty(const dbus::ObjectPath& ipconfig_path, 49 virtual void ClearProperty(const dbus::ObjectPath& ipconfig_path,
50 const std::string& name, 50 const std::string& name,
51 const VoidDBusMethodCallback& callback) OVERRIDE; 51 const VoidDBusMethodCallback& callback) override;
52 virtual void Remove(const dbus::ObjectPath& ipconfig_path, 52 virtual void Remove(const dbus::ObjectPath& ipconfig_path,
53 const VoidDBusMethodCallback& callback) OVERRIDE; 53 const VoidDBusMethodCallback& callback) override;
54 virtual ShillIPConfigClient::TestInterface* GetTestInterface() OVERRIDE; 54 virtual ShillIPConfigClient::TestInterface* GetTestInterface() override;
55 55
56 protected: 56 protected:
57 virtual void Init(dbus::Bus* bus) OVERRIDE { 57 virtual void Init(dbus::Bus* bus) override {
58 bus_ = bus; 58 bus_ = bus;
59 } 59 }
60 60
61 private: 61 private:
62 typedef std::map<std::string, ShillClientHelper*> HelperMap; 62 typedef std::map<std::string, ShillClientHelper*> HelperMap;
63 63
64 // Returns the corresponding ShillClientHelper for the profile. 64 // Returns the corresponding ShillClientHelper for the profile.
65 ShillClientHelper* GetHelper(const dbus::ObjectPath& ipconfig_path) { 65 ShillClientHelper* GetHelper(const dbus::ObjectPath& ipconfig_path) {
66 HelperMap::iterator it = helpers_.find(ipconfig_path.value()); 66 HelperMap::iterator it = helpers_.find(ipconfig_path.value());
67 if (it != helpers_.end()) 67 if (it != helpers_.end())
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 ShillIPConfigClient::ShillIPConfigClient() {} 175 ShillIPConfigClient::ShillIPConfigClient() {}
176 176
177 ShillIPConfigClient::~ShillIPConfigClient() {} 177 ShillIPConfigClient::~ShillIPConfigClient() {}
178 178
179 // static 179 // static
180 ShillIPConfigClient* ShillIPConfigClient::Create() { 180 ShillIPConfigClient* ShillIPConfigClient::Create() {
181 return new ShillIPConfigClientImpl(); 181 return new ShillIPConfigClientImpl();
182 } 182 }
183 183
184 } // namespace chromeos 184 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/shill_device_client.cc ('k') | chromeos/dbus/shill_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698