Componentize AccountReconcilor.
[chromium-blink-merge.git] / chrome / browser / pref_service_flags_storage.h
blob7710eb8c41fb97a270f9e52bedc348881e4b915b
1 // Copyright 2013 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.
5 #ifndef CHROME_BROWSER_PREF_SERVICE_FLAGS_STORAGE_H_
6 #define CHROME_BROWSER_PREF_SERVICE_FLAGS_STORAGE_H_
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/flags_storage.h"
11 class PrefService;
13 namespace about_flags {
15 // Implements the FlagsStorage interface with a PrefService backend.
16 // This is the implementation used on desktop Chrome for all users.
17 class PrefServiceFlagsStorage : public FlagsStorage {
18 public:
19 explicit PrefServiceFlagsStorage(PrefService *prefs);
20 virtual ~PrefServiceFlagsStorage();
22 virtual std::set<std::string> GetFlags() OVERRIDE;
23 virtual bool SetFlags(const std::set<std::string>& flags) OVERRIDE;
25 private:
26 PrefService* prefs_;
29 } // namespace about_flags
31 #endif // CHROME_BROWSER_PREF_SERVICE_FLAGS_STORAGE_H_