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

Unified Diff: components/policy/core/common/preg_parser_win.h

Issue 2481753002: Push preg_parser and registry_dict changes upstream (Closed)
Patch Set: Minor formatting fixes Created 4 years, 1 month 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
Index: components/policy/core/common/preg_parser_win.h
diff --git a/components/policy/core/common/preg_parser_win.h b/components/policy/core/common/preg_parser_win.h
deleted file mode 100644
index 7e0ee48b34c0ac7443a2e817c19db636762e475e..0000000000000000000000000000000000000000
--- a/components/policy/core/common/preg_parser_win.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// 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 COMPONENTS_POLICY_CORE_COMMON_PREG_PARSER_WIN_H_
-#define COMPONENTS_POLICY_CORE_COMMON_PREG_PARSER_WIN_H_
-
-#include <memory>
-#include <vector>
-
-#include "base/strings/string16.h"
-#include "components/policy/policy_export.h"
-
-namespace base {
-class FilePath;
-}
-
-namespace policy {
-
-class PolicyLoadStatusSample;
-class RegistryDict;
-
-namespace preg_parser {
-
-// The magic header in PReg files: ASCII "PReg" + version (0x0001).
-POLICY_EXPORT extern const char kPRegFileHeader[8];
-
-// 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.
-POLICY_EXPORT bool ReadFile(const base::FilePath& file_path,
- const base::string16& root,
- RegistryDict* dict,
- PolicyLoadStatusSample* status);
-
-} // namespace preg_parser
-} // namespace policy
-
-#endif // COMPONENTS_POLICY_CORE_COMMON_PREG_PARSER_WIN_H_
« no previous file with comments | « components/policy/core/common/preg_parser_unittest.cc ('k') | components/policy/core/common/preg_parser_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698