Changes for start_with_ext Telemetry test to work on Windows.
[chromium-blink-merge.git] / chrome / browser / flags_storage.h
blob0651f00c7efc572093687477238e37a2dc016df0
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_FLAGS_STORAGE_H_
6 #define CHROME_BROWSER_FLAGS_STORAGE_H_
8 #include <set>
9 #include <string>
11 namespace about_flags {
13 // Base class for flags storage implementations. Enables the about_flags
14 // functions to store and retrieve data from various sources like PrefService
15 // and CrosSettings.
16 class FlagsStorage {
17 public:
18 virtual ~FlagsStorage() {}
20 // Retrieves the flags as a set of strings.
21 virtual std::set<std::string> GetFlags() = 0;
22 // Stores the |flags| and returns true on success.
23 virtual bool SetFlags(const std::set<std::string>& flags) = 0;
26 } // namespace about_flags
28 #endif // CHROME_BROWSER_FLAGS_STORAGE_H_