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

Side by Side Diff: components/version_info/version_info.h

Issue 2799013002: Monitor crashpad_handler for crashes [sometimes] (Closed)
Patch Set: Address review feedback (scottmg) Created 3 years, 8 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 | « components/version_info/channel.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_VERSION_INFO_VERSION_INFO_H_ 5 #ifndef COMPONENTS_VERSION_INFO_VERSION_INFO_H_
6 #define COMPONENTS_VERSION_INFO_VERSION_INFO_H_ 6 #define COMPONENTS_VERSION_INFO_VERSION_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/version_info/channel.h"
11
10 namespace version_info { 12 namespace version_info {
11 13
12 // The possible channels for an installation, from most fun to most stable.
13 enum class Channel { UNKNOWN = 0, CANARY, DEV, BETA, STABLE };
14
15 // Returns the product name and version information for UserAgent header, 14 // Returns the product name and version information for UserAgent header,
16 // e.g. "Chrome/a.b.c.d". 15 // e.g. "Chrome/a.b.c.d".
17 std::string GetProductNameAndVersionForUserAgent(); 16 std::string GetProductNameAndVersionForUserAgent();
18 17
19 // Returns the product name, e.g. "Chromium" or "Google Chrome". 18 // Returns the product name, e.g. "Chromium" or "Google Chrome".
20 std::string GetProductName(); 19 std::string GetProductName();
21 20
22 // Returns the version number, e.g. "6.0.490.1". 21 // Returns the version number, e.g. "6.0.490.1".
23 std::string GetVersionNumber(); 22 std::string GetVersionNumber();
24 23
(...skipping 14 matching lines...) Expand all
39 38
40 // Returns a version string to be displayed in "About Chromium" dialog. 39 // Returns a version string to be displayed in "About Chromium" dialog.
41 // |modifier| is a string representation of the channel with system specific 40 // |modifier| is a string representation of the channel with system specific
42 // information, e.g. "dev SyzyASan". It is appended to the returned version 41 // information, e.g. "dev SyzyASan". It is appended to the returned version
43 // information if non-empty. 42 // information if non-empty.
44 std::string GetVersionStringWithModifier(const std::string& modifier); 43 std::string GetVersionStringWithModifier(const std::string& modifier);
45 44
46 } // namespace version_info 45 } // namespace version_info
47 46
48 #endif // COMPONENTS_VERSION_INFO_VERSION_INFO_H_ 47 #endif // COMPONENTS_VERSION_INFO_VERSION_INFO_H_
OLDNEW
« no previous file with comments | « components/version_info/channel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698