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

Side by Side Diff: chromeos/network/network_sms_handler.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 4
5 #include "chromeos/network/network_sms_handler.h" 5 #include "chromeos/network/network_sms_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual void RequestUpdate() = 0; 50 virtual void RequestUpdate() = 0;
51 }; 51 };
52 52
53 class NetworkSmsHandler::ModemManagerNetworkSmsDeviceHandler 53 class NetworkSmsHandler::ModemManagerNetworkSmsDeviceHandler
54 : public NetworkSmsHandler::NetworkSmsDeviceHandler { 54 : public NetworkSmsHandler::NetworkSmsDeviceHandler {
55 public: 55 public:
56 ModemManagerNetworkSmsDeviceHandler(NetworkSmsHandler* host, 56 ModemManagerNetworkSmsDeviceHandler(NetworkSmsHandler* host,
57 const std::string& service_name, 57 const std::string& service_name,
58 const dbus::ObjectPath& object_path); 58 const dbus::ObjectPath& object_path);
59 59
60 virtual void RequestUpdate() OVERRIDE; 60 virtual void RequestUpdate() override;
61 61
62 private: 62 private:
63 void ListCallback(const base::ListValue& message_list); 63 void ListCallback(const base::ListValue& message_list);
64 void SmsReceivedCallback(uint32 index, bool complete); 64 void SmsReceivedCallback(uint32 index, bool complete);
65 void GetCallback(uint32 index, const base::DictionaryValue& dictionary); 65 void GetCallback(uint32 index, const base::DictionaryValue& dictionary);
66 void DeleteMessages(); 66 void DeleteMessages();
67 void MessageReceived(const base::DictionaryValue& dictionary); 67 void MessageReceived(const base::DictionaryValue& dictionary);
68 68
69 NetworkSmsHandler* host_; 69 NetworkSmsHandler* host_;
70 std::string service_name_; 70 std::string service_name_;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 host_->MessageReceived(dictionary); 172 host_->MessageReceived(dictionary);
173 } 173 }
174 174
175 class NetworkSmsHandler::ModemManager1NetworkSmsDeviceHandler 175 class NetworkSmsHandler::ModemManager1NetworkSmsDeviceHandler
176 : public NetworkSmsHandler::NetworkSmsDeviceHandler { 176 : public NetworkSmsHandler::NetworkSmsDeviceHandler {
177 public: 177 public:
178 ModemManager1NetworkSmsDeviceHandler(NetworkSmsHandler* host, 178 ModemManager1NetworkSmsDeviceHandler(NetworkSmsHandler* host,
179 const std::string& service_name, 179 const std::string& service_name,
180 const dbus::ObjectPath& object_path); 180 const dbus::ObjectPath& object_path);
181 181
182 virtual void RequestUpdate() OVERRIDE; 182 virtual void RequestUpdate() override;
183 183
184 private: 184 private:
185 void ListCallback(const std::vector<dbus::ObjectPath>& paths); 185 void ListCallback(const std::vector<dbus::ObjectPath>& paths);
186 void SmsReceivedCallback(const dbus::ObjectPath& path, bool complete); 186 void SmsReceivedCallback(const dbus::ObjectPath& path, bool complete);
187 void GetCallback(const base::DictionaryValue& dictionary); 187 void GetCallback(const base::DictionaryValue& dictionary);
188 void DeleteMessages(); 188 void DeleteMessages();
189 void GetMessages(); 189 void GetMessages();
190 void MessageReceived(const base::DictionaryValue& dictionary); 190 void MessageReceived(const base::DictionaryValue& dictionary);
191 191
192 NetworkSmsHandler* host_; 192 NetworkSmsHandler* host_;
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 new ModemManager1NetworkSmsDeviceHandler( 476 new ModemManager1NetworkSmsDeviceHandler(
477 this, service_name, object_path)); 477 this, service_name, object_path));
478 } else { 478 } else {
479 device_handlers_.push_back( 479 device_handlers_.push_back(
480 new ModemManagerNetworkSmsDeviceHandler( 480 new ModemManagerNetworkSmsDeviceHandler(
481 this, service_name, object_path)); 481 this, service_name, object_path));
482 } 482 }
483 } 483 }
484 484
485 } // namespace chromeos 485 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/network_sms_handler.h ('k') | chromeos/network/network_sms_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698