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

Side by Side Diff: chromeos/dbus/modem_messaging_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
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 #include "chromeos/dbus/modem_messaging_client.h" 4 #include "chromeos/dbus/modem_messaging_client.h"
5 5
6 #include <map> 6 #include <map>
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 class CHROMEOS_EXPORT ModemMessagingClientImpl : public ModemMessagingClient { 136 class CHROMEOS_EXPORT ModemMessagingClientImpl : public ModemMessagingClient {
137 public: 137 public:
138 ModemMessagingClientImpl() 138 ModemMessagingClientImpl()
139 : bus_(NULL), 139 : bus_(NULL),
140 proxies_deleter_(&proxies_) { 140 proxies_deleter_(&proxies_) {
141 } 141 }
142 142
143 virtual void SetSmsReceivedHandler( 143 virtual void SetSmsReceivedHandler(
144 const std::string& service_name, 144 const std::string& service_name,
145 const dbus::ObjectPath& object_path, 145 const dbus::ObjectPath& object_path,
146 const SmsReceivedHandler& handler) OVERRIDE { 146 const SmsReceivedHandler& handler) override {
147 GetProxy(service_name, object_path)->SetSmsReceivedHandler(handler); 147 GetProxy(service_name, object_path)->SetSmsReceivedHandler(handler);
148 } 148 }
149 149
150 virtual void ResetSmsReceivedHandler( 150 virtual void ResetSmsReceivedHandler(
151 const std::string& service_name, 151 const std::string& service_name,
152 const dbus::ObjectPath& object_path) OVERRIDE { 152 const dbus::ObjectPath& object_path) override {
153 GetProxy(service_name, object_path)->ResetSmsReceivedHandler(); 153 GetProxy(service_name, object_path)->ResetSmsReceivedHandler();
154 } 154 }
155 155
156 virtual void Delete(const std::string& service_name, 156 virtual void Delete(const std::string& service_name,
157 const dbus::ObjectPath& object_path, 157 const dbus::ObjectPath& object_path,
158 const dbus::ObjectPath& sms_path, 158 const dbus::ObjectPath& sms_path,
159 const DeleteCallback& callback) OVERRIDE { 159 const DeleteCallback& callback) override {
160 GetProxy(service_name, object_path)->Delete(sms_path, callback); 160 GetProxy(service_name, object_path)->Delete(sms_path, callback);
161 } 161 }
162 162
163 virtual void List(const std::string& service_name, 163 virtual void List(const std::string& service_name,
164 const dbus::ObjectPath& object_path, 164 const dbus::ObjectPath& object_path,
165 const ListCallback& callback) OVERRIDE { 165 const ListCallback& callback) override {
166 GetProxy(service_name, object_path)->List(callback); 166 GetProxy(service_name, object_path)->List(callback);
167 } 167 }
168 168
169 protected: 169 protected:
170 virtual void Init(dbus::Bus* bus) OVERRIDE { 170 virtual void Init(dbus::Bus* bus) override {
171 bus_ = bus; 171 bus_ = bus;
172 }; 172 };
173 173
174 private: 174 private:
175 typedef std::map<std::pair<std::string, std::string>, ModemMessagingProxy*> 175 typedef std::map<std::pair<std::string, std::string>, ModemMessagingProxy*>
176 ProxyMap; 176 ProxyMap;
177 177
178 // Returns a SMSProxy for the given service name and object path. 178 // Returns a SMSProxy for the given service name and object path.
179 ModemMessagingProxy* GetProxy(const std::string& service_name, 179 ModemMessagingProxy* GetProxy(const std::string& service_name,
180 const dbus::ObjectPath& object_path) { 180 const dbus::ObjectPath& object_path) {
(...skipping 26 matching lines...) Expand all
207 ModemMessagingClient::~ModemMessagingClient() {} 207 ModemMessagingClient::~ModemMessagingClient() {}
208 208
209 209
210 // static 210 // static
211 ModemMessagingClient* ModemMessagingClient::Create() { 211 ModemMessagingClient* ModemMessagingClient::Create() {
212 return new ModemMessagingClientImpl(); 212 return new ModemMessagingClientImpl();
213 } 213 }
214 214
215 215
216 } // namespace chromeos 216 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/lorgnette_manager_client.cc ('k') | chromeos/dbus/modem_messaging_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698