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

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

Issue 2583393002: Send notification to users upon receiving sms messages (Closed)
Patch Set: update return type Created 3 years, 10 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 | « ash/common/shelf/shelf_widget.cc ('k') | ash/common/system/chromeos/network/sms_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_SMS_OBSERVER_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_SMS_OBSERVER_H_
7
8 #include <stddef.h>
9
10 #include <string>
11 #include "ash/common/system/tray/system_tray_item.h"
12 #include "base/macros.h"
13 #include "base/values.h"
14 #include "chromeos/network/network_sms_handler.h"
15
16 namespace ash {
17
18 // SmsObserver is called when a new sms message is received. Then it shows the
19 // sms message to the user in the notification center.
20 class SmsObserver : public chromeos::NetworkSmsHandler::Observer {
21 public:
22 SmsObserver();
23 ~SmsObserver() override;
24
25 // chromeos::NetworkSmsHandler::Observer:
26 void MessageReceived(const base::DictionaryValue& message) override;
27
28 private:
29 // Used to create notification identifier.
30 uint32_t message_id_;
31
32 DISALLOW_COPY_AND_ASSIGN(SmsObserver);
33 };
34
35 } // namespace ash
36
37 #endif // ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_SMS_OBSERVER_H_
OLDNEW
« no previous file with comments | « ash/common/shelf/shelf_widget.cc ('k') | ash/common/system/chromeos/network/sms_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698