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

Side by Side Diff: chrome/common/chrome_version_info.h

Issue 18055008: Expose "Chrome" as accessible product name. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add dcheck Created 7 years, 5 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 | « chrome/common/chrome_content_client.cc ('k') | chrome/common/chrome_version_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_CHROME_VERSION_INFO_H_ 5 #ifndef CHROME_COMMON_CHROME_VERSION_INFO_H_
6 #define CHROME_COMMON_CHROME_VERSION_INFO_H_ 6 #define CHROME_COMMON_CHROME_VERSION_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 18 matching lines...) Expand all
29 29
30 VersionInfo(); 30 VersionInfo();
31 ~VersionInfo(); 31 ~VersionInfo();
32 32
33 // In the rare case where we fail to get the version info, 33 // In the rare case where we fail to get the version info,
34 // is_valid() will return false. The other functions will return 34 // is_valid() will return false. The other functions will return
35 // the empty string in this case, so it's not harmful if you don't 35 // the empty string in this case, so it's not harmful if you don't
36 // check is_valid(). 36 // check is_valid().
37 bool is_valid() const; 37 bool is_valid() const;
38 38
39 // E.g. "Chrome/a.b.c.d"
40 std::string ProductNameAndVersionForUserAgent() const;
41
39 // E.g. "Chromium" or "Google Chrome". 42 // E.g. "Chromium" or "Google Chrome".
40 std::string Name() const; 43 std::string Name() const;
41 44
42 // Version number, e.g. "6.0.490.1". 45 // Version number, e.g. "6.0.490.1".
43 std::string Version() const; 46 std::string Version() const;
44 47
45 // The SVN revision of this release. E.g. "55800". 48 // The SVN revision of this release. E.g. "55800".
46 std::string LastChange() const; 49 std::string LastChange() const;
47 50
48 // Whether this is an "official" release of the current Version(): 51 // Whether this is an "official" release of the current Version():
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 #if defined(OS_WIN) || defined(OS_MACOSX) 86 #if defined(OS_WIN) || defined(OS_MACOSX)
84 scoped_ptr<FileVersionInfo> version_info_; 87 scoped_ptr<FileVersionInfo> version_info_;
85 #endif 88 #endif
86 89
87 DISALLOW_COPY_AND_ASSIGN(VersionInfo); 90 DISALLOW_COPY_AND_ASSIGN(VersionInfo);
88 }; 91 };
89 92
90 } // namespace chrome 93 } // namespace chrome
91 94
92 #endif // CHROME_COMMON_CHROME_VERSION_INFO_H_ 95 #endif // CHROME_COMMON_CHROME_VERSION_INFO_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | chrome/common/chrome_version_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698