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

Side by Side Diff: chrome/browser/chromeos/mobile_config.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_MOBILE_CONFIG_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_MOBILE_CONFIG_H_
6 #define CHROME_BROWSER_CHROMEOS_MOBILE_CONFIG_H_ 6 #define CHROME_BROWSER_CHROMEOS_MOBILE_CONFIG_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/singleton.h" 14 #include "base/memory/singleton.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "chrome/browser/chromeos/customization_document.h" 16 #include "chrome/browser/chromeos/customization_document.h"
17 17
18 class FilePath;
19
20 namespace base { 18 namespace base {
21 class DictionaryValue; 19 class DictionaryValue;
20 class FilePath;
22 } 21 }
23 22
24 namespace chromeos { 23 namespace chromeos {
25 24
26 // Class that processes mobile (carrier) configuration. 25 // Class that processes mobile (carrier) configuration.
27 // Confugration is defined as a JSON file - global and local one. 26 // Confugration is defined as a JSON file - global and local one.
28 // First global configuration is loaded then local one if it exists. 27 // First global configuration is loaded then local one if it exists.
29 // Notes on global/local configuration: 28 // Notes on global/local configuration:
30 // 1. All global config data is inherited unless some carrier properties 29 // 1. All global config data is inherited unless some carrier properties
31 // are overidden or carrier deals are explicitly marked as excluded. 30 // are overidden or carrier deals are explicitly marked as excluded.
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 virtual ~MobileConfig(); 172 virtual ~MobileConfig();
174 173
175 // Loads carrier configuration. 174 // Loads carrier configuration.
176 void LoadConfig(); 175 void LoadConfig();
177 176
178 // Processes global/local config. 177 // Processes global/local config.
179 void ProcessConfig(const std::string& global_config, 178 void ProcessConfig(const std::string& global_config,
180 const std::string& local_config); 179 const std::string& local_config);
181 180
182 // Executes on FILE thread and reads config files to string. 181 // Executes on FILE thread and reads config files to string.
183 void ReadConfigInBackground(const FilePath& global_config_file, 182 void ReadConfigInBackground(const base::FilePath& global_config_file,
184 const FilePath& local_config_file); 183 const base::FilePath& local_config_file);
185 184
186 // Maps external carrier ID to internal carrier ID. 185 // Maps external carrier ID to internal carrier ID.
187 CarrierIdMap carrier_id_map_; 186 CarrierIdMap carrier_id_map_;
188 187
189 // Carrier configuration (including carrier deals). 188 // Carrier configuration (including carrier deals).
190 Carriers carriers_; 189 Carriers carriers_;
191 190
192 // Initial locale specific config if defined. 191 // Initial locale specific config if defined.
193 scoped_ptr<LocaleConfig> locale_config_; 192 scoped_ptr<LocaleConfig> locale_config_;
194 193
195 // Initial locale value. 194 // Initial locale value.
196 std::string initial_locale_; 195 std::string initial_locale_;
197 196
198 // Root value of the local config (if it exists). 197 // Root value of the local config (if it exists).
199 // Global config is stored in root_ of the base class. 198 // Global config is stored in root_ of the base class.
200 scoped_ptr<base::DictionaryValue> local_config_root_; 199 scoped_ptr<base::DictionaryValue> local_config_root_;
201 200
202 DISALLOW_COPY_AND_ASSIGN(MobileConfig); 201 DISALLOW_COPY_AND_ASSIGN(MobileConfig);
203 }; 202 };
204 203
205 } // namespace chromeos 204 } // namespace chromeos
206 205
207 #endif // CHROME_BROWSER_CHROMEOS_MOBILE_CONFIG_H_ 206 #endif // CHROME_BROWSER_CHROMEOS_MOBILE_CONFIG_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_manager_impl.h ('k') | chrome/browser/chromeos/settings/owner_key_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698