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

Side by Side Diff: chrome/browser/policy/preg_parser_win.h

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file provides a parser for PReg files which are used for storing group
6 // policy settings in the file system. The file format is documented here:
7 //
8 // http://msdn.microsoft.com/en-us/library/windows/desktop/aa374407(v=vs.85).asp x
9
10 #ifndef CHROME_BROWSER_POLICY_PREG_PARSER_WIN_H_
11 #define CHROME_BROWSER_POLICY_PREG_PARSER_WIN_H_
12
13 #include <vector>
14
15 #include "base/memory/scoped_ptr.h"
16 #include "base/strings/string16.h"
17
18 namespace base {
19 class FilePath;
20 }
21
22 namespace policy {
23
24 class PolicyLoadStatusSample;
25 class RegistryDict;
26
27 namespace preg_parser {
28
29 // The magic header in PReg files: ASCII "PReg" + version (0x0001).
30 extern const char kPRegFileHeader[8];
31
32 // Reads the PReg file at |file_path| and writes the registry data to |dict|.
33 // |root| specifies the registry subtree the caller is interested in,
34 // everything else gets ignored.
35 bool ReadFile(const base::FilePath& file_path,
36 const string16& root,
37 RegistryDict* dict,
38 PolicyLoadStatusSample* status);
39
40 } // namespace preg_parser
41 } // namespace policy
42
43 #endif // CHROME_BROWSER_POLICY_PREG_PARSER_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_statistics_collector_unittest.cc ('k') | chrome/browser/policy/preg_parser_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698