summaryrefslogtreecommitdiffstats
path: root/chrome/browser/obsolete_system/obsolete_system.h
blob: 2abc413c434ade163c1e2ab9d2a884a5944dc8dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_OBSOLETE_SYSTEM_OBSOLETE_SYSTEM_H_
#define CHROME_BROWSER_OBSOLETE_SYSTEM_OBSOLETE_SYSTEM_H_

#include "base/macros.h"
#include "base/strings/string16.h"

class ObsoleteSystem {
 public:
  // true if the system is already considered obsolete, or if it'll be
  // considered obsolete soon. Used to control whether to show messaging about
  // deprecation within the app.
  static bool IsObsoleteNowOrSoon();

  // Returns a localized string informing users that their system will either
  // soon be unsupported by future versions of the application, or that they
  // are already using the last version of the application that supports their
  // system. Do not use the returned string unless IsObsoleteNowOrSoon() returns
  // true.
  static base::string16 LocalizedObsoleteString();

  // true if this is the final release. This is only valid when
  // IsObsoleteNowOrSoon() returns true.
  static bool IsEndOfTheLine();

  // A help URL to explain the deprecation. Do not use the returned string
  // unless IsObsoleteNowOrSoon() returns true.
  static const char* GetLinkURL();

 private:
  DISALLOW_IMPLICIT_CONSTRUCTORS(ObsoleteSystem);
};

#endif  // CHROME_BROWSER_OBSOLETE_SYSTEM_OBSOLETE_SYSTEM_H_