summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/settings/system_settings_provider.h
diff options
context:
space:
mode:
authormnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-01 11:31:31 +0000
committermnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-01 11:31:31 +0000
commitedaf596da7f67917f53891fabbeffad00db5f843 (patch)
tree0b7fd8e3f8a100dfd5daa6a39f17840c589e21e5 /chrome/browser/chromeos/settings/system_settings_provider.h
parentd1d877d6ee940ddd2bd062a2126478a013161bba (diff)
downloadchromium_src-edaf596da7f67917f53891fabbeffad00db5f843.zip
chromium_src-edaf596da7f67917f53891fabbeffad00db5f843.tar.gz
chromium_src-edaf596da7f67917f53891fabbeffad00db5f843.tar.bz2
Move Chrome OS device settings stuff to chrome/browser/chromeos/settings.
BUG=chromium:139126 TEST=Still compiles and passes tests, no functional changes. TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/10824112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/settings/system_settings_provider.h')
-rw-r--r--chrome/browser/chromeos/settings/system_settings_provider.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/settings/system_settings_provider.h b/chrome/browser/chromeos/settings/system_settings_provider.h
new file mode 100644
index 0000000..49ef2aa
--- /dev/null
+++ b/chrome/browser/chromeos/settings/system_settings_provider.h
@@ -0,0 +1,50 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_SYSTEM_SETTINGS_PROVIDER_H_
+#define CHROME_BROWSER_CHROMEOS_SETTINGS_SYSTEM_SETTINGS_PROVIDER_H_
+
+#include <string>
+
+#include "base/callback.h"
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/chromeos/settings/cros_settings_provider.h"
+#include "chrome/browser/chromeos/system/timezone_settings.h"
+#include "third_party/icu/public/i18n/unicode/timezone.h"
+
+namespace base {
+class Value;
+}
+
+namespace chromeos {
+
+class SystemSettingsProvider : public CrosSettingsProvider,
+ public system::TimezoneSettings::Observer {
+ public:
+ explicit SystemSettingsProvider(const NotifyObserversCallback& notify_cb);
+ virtual ~SystemSettingsProvider();
+
+ // CrosSettingsProvider implementation.
+ virtual const base::Value* Get(const std::string& path) const OVERRIDE;
+ virtual TrustedStatus PrepareTrustedValues(
+ const base::Closure& callback) OVERRIDE;
+ virtual bool HandlesSetting(const std::string& path) const OVERRIDE;
+ virtual void Reload() OVERRIDE;
+
+ // TimezoneSettings::Observer implementation.
+ virtual void TimezoneChanged(const icu::TimeZone& timezone) OVERRIDE;
+
+ private:
+ // CrosSettingsProvider implementation.
+ virtual void DoSet(const std::string& path,
+ const base::Value& in_value) OVERRIDE;
+
+ scoped_ptr<base::Value> timezone_value_;
+
+ DISALLOW_COPY_AND_ASSIGN(SystemSettingsProvider);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_SETTINGS_SYSTEM_SETTINGS_PROVIDER_H_