blob: 7710eb8c41fb97a270f9e52bedc348881e4b915b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright 2013 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_PREF_SERVICE_FLAGS_STORAGE_H_
#define CHROME_BROWSER_PREF_SERVICE_FLAGS_STORAGE_H_
#include "base/compiler_specific.h"
#include "chrome/browser/flags_storage.h"
class PrefService;
namespace about_flags {
// Implements the FlagsStorage interface with a PrefService backend.
// This is the implementation used on desktop Chrome for all users.
class PrefServiceFlagsStorage : public FlagsStorage {
public:
explicit PrefServiceFlagsStorage(PrefService *prefs);
virtual ~PrefServiceFlagsStorage();
virtual std::set<std::string> GetFlags() OVERRIDE;
virtual bool SetFlags(const std::set<std::string>& flags) OVERRIDE;
private:
PrefService* prefs_;
};
} // namespace about_flags
#endif // CHROME_BROWSER_PREF_SERVICE_FLAGS_STORAGE_H_
|