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

Side by Side Diff: base/file_version_info.h

Issue 6733031: Base: A few more files using BASE_API (for base.dll) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 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 BASE_FILE_VERSION_INFO_H__ 5 #ifndef BASE_FILE_VERSION_INFO_H__
6 #define BASE_FILE_VERSION_INFO_H__ 6 #define BASE_FILE_VERSION_INFO_H__
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h"
10
11 #include <string> 9 #include <string>
12 10
11 #include "base/base_api.h"
13 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "build/build_config.h"
14 14
15 class FilePath; 15 class FilePath;
16 16
17 // Provides an interface for accessing the version information for a file. This 17 // Provides an interface for accessing the version information for a file. This
18 // is the information you access when you select a file in the Windows Explorer, 18 // is the information you access when you select a file in the Windows Explorer,
19 // right-click select Properties, then click the Version tab, and on the Mac 19 // right-click select Properties, then click the Version tab, and on the Mac
20 // when you select a file in the Finder and do a Get Info. 20 // when you select a file in the Finder and do a Get Info.
21 // 21 //
22 // This list of properties is straight out of Win32's VerQueryValue 22 // This list of properties is straight out of Win32's VerQueryValue
23 // <http://msdn.microsoft.com/en-us/library/ms647464.aspx> and the Mac 23 // <http://msdn.microsoft.com/en-us/library/ms647464.aspx> and the Mac
24 // version returns values from the Info.plist as appropriate. TODO(avi): make 24 // version returns values from the Info.plist as appropriate. TODO(avi): make
25 // this a less-obvious Windows-ism. 25 // this a less-obvious Windows-ism.
26 26
27 class FileVersionInfo { 27 class BASE_API FileVersionInfo {
28 public: 28 public:
29 virtual ~FileVersionInfo() {} 29 virtual ~FileVersionInfo() {}
30 #if defined(OS_WIN) || defined(OS_MACOSX) 30 #if defined(OS_WIN) || defined(OS_MACOSX)
31 // Creates a FileVersionInfo for the specified path. Returns NULL if something 31 // Creates a FileVersionInfo for the specified path. Returns NULL if something
32 // goes wrong (typically the file does not exit or cannot be opened). The 32 // goes wrong (typically the file does not exit or cannot be opened). The
33 // returned object should be deleted when you are done with it. 33 // returned object should be deleted when you are done with it.
34 static FileVersionInfo* CreateFileVersionInfo(const FilePath& file_path); 34 static FileVersionInfo* CreateFileVersionInfo(const FilePath& file_path);
35 #endif // OS_WIN || OS_MACOSX 35 #endif // OS_WIN || OS_MACOSX
36 36
37 // Creates a FileVersionInfo for the current module. Returns NULL in case 37 // Creates a FileVersionInfo for the current module. Returns NULL in case
(...skipping 14 matching lines...) Expand all
52 virtual string16 original_filename() = 0; 52 virtual string16 original_filename() = 0;
53 virtual string16 file_description() = 0; 53 virtual string16 file_description() = 0;
54 virtual string16 file_version() = 0; 54 virtual string16 file_version() = 0;
55 virtual string16 legal_copyright() = 0; 55 virtual string16 legal_copyright() = 0;
56 virtual string16 legal_trademarks() = 0; 56 virtual string16 legal_trademarks() = 0;
57 virtual string16 last_change() = 0; 57 virtual string16 last_change() = 0;
58 virtual bool is_official_build() = 0; 58 virtual bool is_official_build() = 0;
59 }; 59 };
60 60
61 #endif // BASE_FILE_VERSION_INFO_H__ 61 #endif // BASE_FILE_VERSION_INFO_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698