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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/system_settings_provider.h

Issue 7867044: PART1: Initiated the SignedSettings refactoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up some debug output. Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "chrome/browser/chromeos/cros_settings_provider.h" 11 #include "chrome/browser/chromeos/cros_settings_provider.h"
12 #include "chrome/browser/chromeos/system/timezone_settings.h" 12 #include "chrome/browser/chromeos/system/timezone_settings.h"
13 #include "third_party/icu/public/i18n/unicode/timezone.h" 13 #include "third_party/icu/public/i18n/unicode/timezone.h"
14 14
15 namespace base { 15 namespace base {
16 class Value; 16 class Value;
17 class ListValue; 17 class ListValue;
18 } 18 }
19 19
20 namespace chromeos { 20 namespace chromeos {
21 21
22 class SystemSettingsProvider : public CrosSettingsProvider, 22 class SystemSettingsProvider : public CrosSettingsProvider,
23 public system::TimezoneSettings::Observer { 23 public system::TimezoneSettings::Observer {
24 public: 24 public:
25 SystemSettingsProvider(); 25 SystemSettingsProvider();
26 virtual ~SystemSettingsProvider(); 26 virtual ~SystemSettingsProvider();
27 27
28 // CrosSettingsProvider overrides. 28 // CrosSettingsProvider overrides.
29 virtual bool Get(const std::string& path, 29 virtual const base::Value* Get(const std::string& path) const OVERRIDE;
30 base::Value** out_value) const OVERRIDE; 30 virtual bool GetTrusted(const std::string& path,
31 const Callback& callback) const OVERRIDE;
31 virtual bool HandlesSetting(const std::string& path) const OVERRIDE; 32 virtual bool HandlesSetting(const std::string& path) const OVERRIDE;
32 33
34
33 // Overridden from TimezoneSettings::Observer: 35 // Overridden from TimezoneSettings::Observer:
34 virtual void TimezoneChanged(const icu::TimeZone& timezone) OVERRIDE; 36 virtual void TimezoneChanged(const icu::TimeZone& timezone) OVERRIDE;
35 37
36 // Creates the map of timezones used by the options page. 38 // Creates the map of timezones used by the options page.
37 base::ListValue* GetTimezoneList(); 39 base::ListValue* GetTimezoneList();
38 40
39 private: 41 private:
40 // CrosSettingsProvider overrides. 42 // CrosSettingsProvider overrides.
41 virtual void DoSet(const std::string& path, base::Value* in_value) OVERRIDE; 43 virtual void DoSet(const std::string& path, base::Value* in_value) OVERRIDE;
42 44
(...skipping 17 matching lines...) Expand all
60 62
61 // Timezones. 63 // Timezones.
62 std::vector<icu::TimeZone*> timezones_; 64 std::vector<icu::TimeZone*> timezones_;
63 65
64 DISALLOW_COPY_AND_ASSIGN(SystemSettingsProvider); 66 DISALLOW_COPY_AND_ASSIGN(SystemSettingsProvider);
65 }; 67 };
66 68
67 } // namespace chromeos 69 } // namespace chromeos
68 70
69 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_ 71 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698