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

Unified Diff: chrome/browser/policy/preg_parser_win.h

Issue 13441008: Add parser for PReg files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Break out binary test file. Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/policy/preg_parser_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/preg_parser_win.h
diff --git a/chrome/browser/policy/preg_parser_win.h b/chrome/browser/policy/preg_parser_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..1905b834f998eb3077038ace6cf4457e3815d31e
--- /dev/null
+++ b/chrome/browser/policy/preg_parser_win.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file provides a parser for PReg files which are used for storing group
+// policy settings in the file system. The file format is documented here:
+//
+// http://msdn.microsoft.com/en-us/library/windows/desktop/aa374407(v=vs.85).aspx
+
+#ifndef CHROME_BROWSER_POLICY_PREG_PARSER_WIN_H_
+#define CHROME_BROWSER_POLICY_PREG_PARSER_WIN_H_
+
+#include <vector>
+
+#include "base/memory/scoped_ptr.h"
+#include "base/string16.h"
+
+namespace base {
+class DictionaryValue;
+class FilePath;
+}
+
+namespace policy {
+namespace preg_parser {
+
+// Reads the PReg file at |file_path| and writes the registry data to |dict|.
+// |root| specifies the registry subtree the caller is interested in,
+// everything else gets ignored.
+bool ReadFile(const base::FilePath& file_path,
+ const string16& root,
+ base::DictionaryValue* dict);
+
+} // namespace preg_parser
+} // namespace policy
+
+#endif // CHROME_BROWSER_POLICY_PREG_PARSER_WIN_H_
« no previous file with comments | « no previous file | chrome/browser/policy/preg_parser_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698