OLD | NEW |
| (Empty) |
1 // Copyright 2008-2009 Google Inc. | |
2 // | |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | |
4 // you may not use this file except in compliance with the License. | |
5 // You may obtain a copy of the License at | |
6 // | |
7 // http://www.apache.org/licenses/LICENSE-2.0 | |
8 // | |
9 // Unless required by applicable law or agreed to in writing, software | |
10 // distributed under the License is distributed on an "AS IS" BASIS, | |
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 // See the License for the specific language governing permissions and | |
13 // limitations under the License. | |
14 // ======================================================================== | |
15 | |
16 #ifndef OMAHA_TOOLS_SRC_GOOPDUMP_DATA_DUMPER_GOOPDATE_H_ | |
17 #define OMAHA_TOOLS_SRC_GOOPDUMP_DATA_DUMPER_GOOPDATE_H_ | |
18 | |
19 #include <windows.h> | |
20 #include <atlstr.h> | |
21 #include "base/basictypes.h" | |
22 | |
23 #include "omaha/tools/goopdump/data_dumper.h" | |
24 | |
25 namespace omaha { | |
26 | |
27 class DataDumperGoopdate : public DataDumper { | |
28 public: | |
29 DataDumperGoopdate(); | |
30 virtual ~DataDumperGoopdate(); | |
31 | |
32 virtual HRESULT Process(const DumpLog& dump_log, | |
33 const GoopdumpCmdLineArgs& args); | |
34 | |
35 private: | |
36 void DumpGoogleUpdateIniFile(const DumpLog& dump_log); | |
37 void DumpHostsFile(const DumpLog& dump_log); | |
38 void DumpUpdateDevKeys(const DumpLog& dump_log); | |
39 void DumpLogFile(const DumpLog& dump_log); | |
40 void DumpEventLog(const DumpLog& dump_log); | |
41 void DumpGoogleUpdateProcessInfo(const DumpLog& dump_log); | |
42 void DumpDirContents(const DumpLog& dump_log, bool is_machine); | |
43 void DumpServiceInfo(const DumpLog& dump_log); | |
44 void DumpRunKeys(const DumpLog& dump_log); | |
45 void DumpScheduledTaskInfo(const DumpLog& dump_log, bool is_machine); | |
46 | |
47 HRESULT GetRegisteredVersion(bool is_machine, CString* version); | |
48 HRESULT GetDllDir(bool is_machine, CString* dll_path); | |
49 | |
50 void DumpFileContents(const DumpLog& dump_log, | |
51 const CString& file_path, | |
52 int num_tail_lines); | |
53 | |
54 | |
55 DISALLOW_EVIL_CONSTRUCTORS(DataDumperGoopdate); | |
56 }; | |
57 | |
58 } // namespace omaha | |
59 | |
60 #endif // OMAHA_TOOLS_SRC_GOOPDUMP_DATA_DUMPER_GOOPDATE_H_ | |
61 | |
OLD | NEW |