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

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

Issue 14294008: Add UMA histograms for policy loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/policy/policy_loader_win.cc ('k') | chrome/browser/policy/preg_parser_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file provides a parser for PReg files which are used for storing group 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: 6 // policy settings in the file system. The file format is documented here:
7 // 7 //
8 // http://msdn.microsoft.com/en-us/library/windows/desktop/aa374407(v=vs.85).asp x 8 // http://msdn.microsoft.com/en-us/library/windows/desktop/aa374407(v=vs.85).asp x
9 9
10 #ifndef CHROME_BROWSER_POLICY_PREG_PARSER_WIN_H_ 10 #ifndef CHROME_BROWSER_POLICY_PREG_PARSER_WIN_H_
11 #define CHROME_BROWSER_POLICY_PREG_PARSER_WIN_H_ 11 #define CHROME_BROWSER_POLICY_PREG_PARSER_WIN_H_
12 12
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/string16.h" 16 #include "base/string16.h"
17 17
18 namespace base { 18 namespace base {
19 class DictionaryValue; 19 class DictionaryValue;
20 class FilePath; 20 class FilePath;
21 } 21 }
22 22
23 namespace policy { 23 namespace policy {
24
25 class PolicyLoadStatusSample;
26
24 namespace preg_parser { 27 namespace preg_parser {
25 28
26 // Reads the PReg file at |file_path| and writes the registry data to |dict|. 29 // Reads the PReg file at |file_path| and writes the registry data to |dict|.
27 // |root| specifies the registry subtree the caller is interested in, 30 // |root| specifies the registry subtree the caller is interested in,
28 // everything else gets ignored. 31 // everything else gets ignored.
29 bool ReadFile(const base::FilePath& file_path, 32 bool ReadFile(const base::FilePath& file_path,
30 const string16& root, 33 const string16& root,
31 base::DictionaryValue* dict); 34 base::DictionaryValue* dict,
35 PolicyLoadStatusSample* status);
32 36
33 } // namespace preg_parser 37 } // namespace preg_parser
34 } // namespace policy 38 } // namespace policy
35 39
36 #endif // CHROME_BROWSER_POLICY_PREG_PARSER_WIN_H_ 40 #endif // CHROME_BROWSER_POLICY_PREG_PARSER_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_loader_win.cc ('k') | chrome/browser/policy/preg_parser_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698