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

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

Issue 10824112: Move Chrome OS device settings stuff to chrome/browser/chromeos/settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_
7
8 #include <string>
9
10 #include "base/callback.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/chromeos/cros_settings_provider.h"
13 #include "chrome/browser/chromeos/system/timezone_settings.h"
14 #include "third_party/icu/public/i18n/unicode/timezone.h"
15
16 namespace base {
17 class Value;
18 }
19
20 namespace chromeos {
21
22 class SystemSettingsProvider : public CrosSettingsProvider,
23 public system::TimezoneSettings::Observer {
24 public:
25 explicit SystemSettingsProvider(const NotifyObserversCallback& notify_cb);
26 virtual ~SystemSettingsProvider();
27
28 // CrosSettingsProvider implementation.
29 virtual const base::Value* Get(const std::string& path) const OVERRIDE;
30 virtual TrustedStatus PrepareTrustedValues(
31 const base::Closure& callback) OVERRIDE;
32 virtual bool HandlesSetting(const std::string& path) const OVERRIDE;
33 virtual void Reload() OVERRIDE;
34
35 // TimezoneSettings::Observer implementation.
36 virtual void TimezoneChanged(const icu::TimeZone& timezone) OVERRIDE;
37
38 private:
39 // CrosSettingsProvider implementation.
40 virtual void DoSet(const std::string& path,
41 const base::Value& in_value) OVERRIDE;
42
43 scoped_ptr<base::Value> timezone_value_;
44
45 DISALLOW_COPY_AND_ASSIGN(SystemSettingsProvider);
46 };
47
48 } // namespace chromeos
49
50 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_SETTINGS_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/stub_cros_settings_provider_unittest.cc ('k') | chrome/browser/chromeos/system_settings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698