OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_OBSOLETE_SYSTEM_OBSOLETE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_OBSOLETE_SYSTEM_OBSOLETE_SYSTEM_H_ |
6 #define CHROME_BROWSER_OBSOLETE_SYSTEM_OBSOLETE_SYSTEM_H_ | 6 #define CHROME_BROWSER_OBSOLETE_SYSTEM_OBSOLETE_SYSTEM_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 | 10 |
11 class ObsoleteSystem { | 11 class ObsoleteSystem { |
12 public: | 12 public: |
13 // true if the system is already considered obsolete, or if it'll be | 13 // true if the system is already considered obsolete, or if it'll be |
14 // considered obsolete soon. Used to control whether to show messaging about | 14 // considered obsolete soon. Used to control whether to show messaging about |
15 // deprecation within the app. | 15 // deprecation within the app. |
16 static bool IsObsoleteNowOrSoon(); | 16 static bool IsObsoleteNowOrSoon(); |
17 | 17 |
18 // Returns a localized string informing users that their system will either | 18 // Returns a localized string informing users that their system will either |
19 // soon be unsupported by future versions of the application, or that they | 19 // soon be unsupported by future versions of the application, or that they |
20 // are already using the last version of the application that supports their | 20 // are already using the last version of the application that supports their |
21 // system. Do not use the returned string unless IsObsoleteNowOrSoon() returns | 21 // system. Do not use the returned string unless IsObsoleteNowOrSoon() returns |
22 // true. | 22 // true. |
23 static base::string16 LocalizedObsoleteString(); | 23 static base::string16 LocalizedObsoleteString(); |
24 | 24 |
25 // true if this is the final release. This is only valid when | 25 // true if this is the final release. This is only valid when |
26 // IsObsoleteNowOrSoon() returns true. | 26 // IsObsoleteNowOrSoon() returns true. |
27 static bool IsEndOfTheLine(); | 27 static bool IsEndOfTheLine(); |
28 | 28 |
29 // A help URL to explain the deprecation. Do not use the returned string | 29 // A help URL to explain the deprecation. Do not use the returned string |
30 // unless IsObsoleteNowOrSoon() returns true. | 30 // unless IsObsoleteNowOrSoon() returns true. |
31 static const char* GetLinkURL(); | 31 static const char* GetLinkURL(); |
32 | 32 |
33 private: | 33 private: |
34 DISALLOW_IMPLICIT_CONSTRUCTORS(ObsoleteSystem); | 34 DISALLOW_IMPLICIT_CONSTRUCTORS(ObsoleteSystem); |
35 }; | 35 }; |
36 | 36 |
37 #endif // CHROME_BROWSER_OBSOLETE_SYSTEM_OBSOLETE_SYSTEM_H_ | 37 #endif // CHROME_BROWSER_OBSOLETE_SYSTEM_OBSOLETE_SYSTEM_H_ |
OLD | NEW |