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

Side by Side Diff: ash/system/network/sms_observer.h

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_SMS_OBSERVER_H_ 5 #ifndef ASH_SYSTEM_NETWORK_SMS_OBSERVER_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_SMS_OBSERVER_H_ 6 #define ASH_SYSTEM_NETWORK_SMS_OBSERVER_H_
7 7
8 #include "chromeos/network/network_sms_handler.h" 8 #include "chromeos/network/network_sms_handler.h"
9 9
10 namespace base { 10 namespace base {
11 class DictionaryValue; 11 class DictionaryValue;
12 } 12 }
13 13
14 namespace ash { 14 namespace ash {
15 15
16 // SmsObserver is called when a new sms message is received. Then it shows the 16 // SmsObserver is called when a new sms message is received. Then it shows the
17 // sms message to the user in the notification center. 17 // sms message to the user in the notification center.
18 class SmsObserver : public chromeos::NetworkSmsHandler::Observer { 18 class SmsObserver : public chromeos::NetworkSmsHandler::Observer {
19 public: 19 public:
20 SmsObserver(); 20 SmsObserver();
21 ~SmsObserver() override; 21 ~SmsObserver() override;
22 22
23 // chromeos::NetworkSmsHandler::Observer: 23 // chromeos::NetworkSmsHandler::Observer:
24 void MessageReceived(const base::DictionaryValue& message) override; 24 void MessageReceived(const base::DictionaryValue& message) override;
25 25
26 private: 26 private:
27 // Used to create notification identifier. 27 // Used to create notification identifier.
28 uint32_t message_id_ = 0; 28 uint32_t message_id_ = 0;
29 29
30 DISALLOW_COPY_AND_ASSIGN(SmsObserver); 30 DISALLOW_COPY_AND_ASSIGN(SmsObserver);
31 }; 31 };
32 32
33 } // namespace ash 33 } // namespace ash
34 34
35 #endif // ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_SMS_OBSERVER_H_ 35 #endif // ASH_SYSTEM_NETWORK_SMS_OBSERVER_H_
OLDNEW
« no previous file with comments | « ash/system/network/network_state_list_detailed_view.cc ('k') | ash/system/network/sms_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698