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

Side by Side Diff: tools/goopdump/data_dumper.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 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 | « tools/goopdump/build.scons ('k') | tools/goopdump/data_dumper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « tools/goopdump/build.scons ('k') | tools/goopdump/data_dumper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698