OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CHROME_BROWSER_CHROMEOS_EOL_NOTIFICATION_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EOL_NOTIFICATION_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EOL_NOTIFICATION_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EOL_NOTIFICATION_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "third_party/cros_system_api/dbus/update_engine/dbus-constants.h" | 12 #include "third_party/cros_system_api/dbus/update_engine/dbus-constants.h" |
13 | 13 |
14 namespace message_center { | |
15 class MessageCenter; | |
16 } | |
17 | |
18 namespace chromeos { | 14 namespace chromeos { |
19 | 15 |
20 // EolNotification is created when user logs in. It is | 16 // EolNotification is created when user logs in. It is |
21 // used to check current EndOfLife Status of the device, | 17 // used to check current EndOfLife Status of the device, |
22 // and show notification accordingly. | 18 // and show notification accordingly. |
23 class EolNotification final { | 19 class EolNotification final { |
24 public: | 20 public: |
25 explicit EolNotification(Profile* profile); | 21 explicit EolNotification(Profile* profile); |
26 ~EolNotification(); | 22 ~EolNotification(); |
27 | 23 |
(...skipping 18 matching lines...) Expand all Loading... |
46 | 42 |
47 // Factory of callbacks. | 43 // Factory of callbacks. |
48 base::WeakPtrFactory<EolNotification> weak_factory_; | 44 base::WeakPtrFactory<EolNotification> weak_factory_; |
49 | 45 |
50 DISALLOW_COPY_AND_ASSIGN(EolNotification); | 46 DISALLOW_COPY_AND_ASSIGN(EolNotification); |
51 }; | 47 }; |
52 | 48 |
53 } // namespace chromeos | 49 } // namespace chromeos |
54 | 50 |
55 #endif // CHROME_BROWSER_CHROMEOS_EOL_NOTIFICATION_H_ | 51 #endif // CHROME_BROWSER_CHROMEOS_EOL_NOTIFICATION_H_ |
OLD | NEW |