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

Side by Side Diff: chrome/browser/chromeos/device_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_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 28
29 namespace chromeos { 29 namespace chromeos {
30 30
31 class OwnershipService; 31 class OwnershipService;
32 32
33 // CrosSettingsProvider implementation that works with SignedSettings. 33 // CrosSettingsProvider implementation that works with SignedSettings.
34 class DeviceSettingsProvider : public CrosSettingsProvider, 34 class DeviceSettingsProvider : public CrosSettingsProvider,
35 public content::NotificationObserver { 35 public content::NotificationObserver {
36 public: 36 public:
37 DeviceSettingsProvider(); 37 explicit DeviceSettingsProvider(const NotifyObserversCallback& notify_cb);
38 virtual ~DeviceSettingsProvider(); 38 virtual ~DeviceSettingsProvider();
39 39
40 // CrosSettingsProvider implementation. 40 // CrosSettingsProvider implementation.
41 virtual const base::Value* Get(const std::string& path) const OVERRIDE; 41 virtual const base::Value* Get(const std::string& path) const OVERRIDE;
42 virtual bool GetTrusted(const std::string& path, 42 virtual bool GetTrusted(const std::string& path,
43 const base::Closure& callback) OVERRIDE; 43 const base::Closure& callback) OVERRIDE;
44 virtual bool HandlesSetting(const std::string& path) const OVERRIDE; 44 virtual bool HandlesSetting(const std::string& path) const OVERRIDE;
45 virtual void Reload() OVERRIDE; 45 virtual void Reload() OVERRIDE;
46 46
47 private: 47 private:
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 PrefValueMap values_cache_; 122 PrefValueMap values_cache_;
123 123
124 friend class SignedSettingsHelper; 124 friend class SignedSettingsHelper;
125 125
126 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsProvider); 126 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsProvider);
127 }; 127 };
128 128
129 } // namespace chromeos 129 } // namespace chromeos
130 130
131 #endif // CHROME_BROWSER_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_ 131 #endif // CHROME_BROWSER_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros_settings_provider.cc ('k') | chrome/browser/chromeos/device_settings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698