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

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

Issue 8899002: [cros] Add --stub-cros-settings option for testing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years 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/callback.h" 10 #include "base/callback.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "chrome/browser/chromeos/cros_settings_provider.h" 12 #include "chrome/browser/chromeos/cros_settings_provider.h"
13 #include "chrome/browser/chromeos/system/timezone_settings.h" 13 #include "chrome/browser/chromeos/system/timezone_settings.h"
14 #include "third_party/icu/public/i18n/unicode/timezone.h" 14 #include "third_party/icu/public/i18n/unicode/timezone.h"
15 15
16 namespace base { 16 namespace base {
17 class Value; 17 class Value;
18 class ListValue; 18 class ListValue;
19 class StringValue; 19 class StringValue;
20 } 20 }
21 21
22 namespace chromeos { 22 namespace chromeos {
23 23
24 class SystemSettingsProvider : public CrosSettingsProvider, 24 class SystemSettingsProvider : public CrosSettingsProvider,
25 public system::TimezoneSettings::Observer { 25 public system::TimezoneSettings::Observer {
26 public: 26 public:
27 SystemSettingsProvider(); 27 explicit SystemSettingsProvider(const NotifyObserversCallback& notify_cb);
28 virtual ~SystemSettingsProvider(); 28 virtual ~SystemSettingsProvider();
29 29
30 // CrosSettingsProvider overrides. 30 // CrosSettingsProvider overrides.
31 virtual const base::Value* Get(const std::string& path) const OVERRIDE; 31 virtual const base::Value* Get(const std::string& path) const OVERRIDE;
32 virtual bool GetTrusted(const std::string& path, 32 virtual bool GetTrusted(const std::string& path,
33 const base::Closure& callback) OVERRIDE; 33 const base::Closure& callback) OVERRIDE;
34 virtual bool HandlesSetting(const std::string& path) const OVERRIDE; 34 virtual bool HandlesSetting(const std::string& path) const OVERRIDE;
35 virtual void Reload() OVERRIDE; 35 virtual void Reload() OVERRIDE;
36 36
37 // Overridden from TimezoneSettings::Observer: 37 // Overridden from TimezoneSettings::Observer:
(...skipping 29 matching lines...) Expand all
67 std::vector<icu::TimeZone*> timezones_; 67 std::vector<icu::TimeZone*> timezones_;
68 68
69 scoped_ptr<base::Value> timezone_value_; 69 scoped_ptr<base::Value> timezone_value_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(SystemSettingsProvider); 71 DISALLOW_COPY_AND_ASSIGN(SystemSettingsProvider);
72 }; 72 };
73 73
74 } // namespace chromeos 74 } // namespace chromeos
75 75
76 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_ 76 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698