| OLD | NEW |
| (Empty) |
| 1 // Copyright 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_H__ | |
| 17 #define OMAHA_TOOLS_SRC_GOOPDUMP_DATA_DUMPER_H__ | |
| 18 | |
| 19 #include <windows.h> | |
| 20 #include <atlstr.h> | |
| 21 #include "base/basictypes.h" | |
| 22 | |
| 23 namespace omaha { | |
| 24 | |
| 25 class RegKey; | |
| 26 | |
| 27 class DumpLog; | |
| 28 struct GoopdumpCmdLineArgs; | |
| 29 | |
| 30 class DataDumper { | |
| 31 public: | |
| 32 DataDumper(); | |
| 33 virtual ~DataDumper(); | |
| 34 | |
| 35 virtual HRESULT Process(const DumpLog& dump_log, | |
| 36 const GoopdumpCmdLineArgs& args) = 0; | |
| 37 | |
| 38 protected: | |
| 39 void DumpRegValueStr(const DumpLog& dump_log, | |
| 40 const TCHAR* full_key_name, | |
| 41 const TCHAR* value_name); | |
| 42 | |
| 43 void DumpRegValueStrRet(const DumpLog& dump_log, | |
| 44 const TCHAR* full_key_name, | |
| 45 const TCHAR* value_name, | |
| 46 CString* str); | |
| 47 | |
| 48 void DumpRegistryKeyData(const DumpLog& dump_log, | |
| 49 const CString& key_name); | |
| 50 | |
| 51 private: | |
| 52 void RecursiveDumpRegistryKey(const DumpLog& dump_log, | |
| 53 RegKey* key, | |
| 54 const int indent); | |
| 55 | |
| 56 DISALLOW_EVIL_CONSTRUCTORS(DataDumper); | |
| 57 }; | |
| 58 | |
| 59 class DumpHeader { | |
| 60 public: | |
| 61 DumpHeader(const DumpLog& dump_log, const TCHAR* header_name); | |
| 62 ~DumpHeader(); | |
| 63 | |
| 64 private: | |
| 65 const DumpLog& dump_log_; | |
| 66 DISALLOW_EVIL_CONSTRUCTORS(DumpHeader); | |
| 67 }; | |
| 68 | |
| 69 } // namespace omaha | |
| 70 | |
| 71 #endif // OMAHA_TOOLS_SRC_GOOPDUMP_DATA_DUMPER_H__ | |
| 72 | |
| OLD | NEW |