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

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

Issue 7324017: Split SystemAccess into TimezoneSettings, StatisticsProvider, and SyslogsProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 years, 5 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_access.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 class Value; 15 class Value;
16 class ListValue; 16 class ListValue;
17 17
18 namespace chromeos { 18 namespace chromeos {
19 19
20 class SystemSettingsProvider : public CrosSettingsProvider, 20 class SystemSettingsProvider : public CrosSettingsProvider,
21 public SystemAccess::Observer { 21 public system::TimezoneSettings::Observer {
22 public: 22 public:
23 SystemSettingsProvider(); 23 SystemSettingsProvider();
24 virtual ~SystemSettingsProvider(); 24 virtual ~SystemSettingsProvider();
25 25
26 // CrosSettingsProvider overrides. 26 // CrosSettingsProvider overrides.
27 virtual bool Get(const std::string& path, Value** out_value) const; 27 virtual bool Get(const std::string& path, Value** out_value) const;
28 virtual bool HandlesSetting(const std::string& path); 28 virtual bool HandlesSetting(const std::string& path);
29 29
30 // Overridden from SystemAccess::Observer: 30 // Overridden from TimezoneSettings::Observer:
31 virtual void TimezoneChanged(const icu::TimeZone& timezone); 31 virtual void TimezoneChanged(const icu::TimeZone& timezone);
32 32
33 // Creates the map of timezones used by the options page. 33 // Creates the map of timezones used by the options page.
34 ListValue* GetTimezoneList(); 34 ListValue* GetTimezoneList();
35 35
36 private: 36 private:
37 // CrosSettingsProvider overrides. 37 // CrosSettingsProvider overrides.
38 virtual void DoSet(const std::string& path, Value* in_value); 38 virtual void DoSet(const std::string& path, Value* in_value);
39 39
40 // Gets timezone name. 40 // Gets timezone name.
(...skipping 16 matching lines...) Expand all
57 57
58 // Timezones. 58 // Timezones.
59 std::vector<icu::TimeZone*> timezones_; 59 std::vector<icu::TimeZone*> timezones_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(SystemSettingsProvider); 61 DISALLOW_COPY_AND_ASSIGN(SystemSettingsProvider);
62 }; 62 };
63 63
64 } // namespace chromeos 64 } // namespace chromeos
65 65
66 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_ 66 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/net_internals_ui.cc ('k') | chrome/browser/ui/webui/options/chromeos/system_settings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698