OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 contains functions processing master preference file used by | 5 // This file contains functions processing master preference file used by |
6 // setup and first run. | 6 // setup and first run. |
7 | 7 |
8 #ifndef CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ | 8 #ifndef CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ |
9 #define CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ | 9 #define CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
18 | 18 |
19 class DictionaryValue; | 19 class DictionaryValue; |
20 class FilePath; | 20 class FilePath; |
21 | 21 |
22 namespace installer_util { | 22 namespace installer { |
23 | 23 |
24 // This is the default name for the master preferences file used to pre-set | 24 // This is the default name for the master preferences file used to pre-set |
25 // values in the user profile at first run. | 25 // values in the user profile at first run. |
26 const char kDefaultMasterPrefs[] = "master_preferences"; | 26 const char kDefaultMasterPrefs[] = "master_preferences"; |
27 | 27 |
28 // The master preferences is a JSON file with the same entries as the | 28 // The master preferences is a JSON file with the same entries as the |
29 // 'Default\Preferences' file. This function parses the distribution | 29 // 'Default\Preferences' file. This function parses the distribution |
30 // section of the preferences file. | 30 // section of the preferences file. |
31 // | 31 // |
32 // A prototypical 'master_preferences' file looks like this: | 32 // A prototypical 'master_preferences' file looks like this: |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 bool preferences_read_from_file_; | 189 bool preferences_read_from_file_; |
190 bool ceee_; | 190 bool ceee_; |
191 bool chrome_; | 191 bool chrome_; |
192 bool chrome_frame_; | 192 bool chrome_frame_; |
193 bool multi_install_; | 193 bool multi_install_; |
194 | 194 |
195 private: | 195 private: |
196 DISALLOW_COPY_AND_ASSIGN(MasterPreferences); | 196 DISALLOW_COPY_AND_ASSIGN(MasterPreferences); |
197 }; | 197 }; |
198 | 198 |
199 } // namespace installer_util | 199 } // namespace installer |
200 | 200 |
201 #endif // CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ | 201 #endif // CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H_ |
OLD | NEW |