1 // Copyright 2015 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 COURGETTE_COURGETTE_CONFIG_H_
6 #define COURGETTE_COURGETTE_CONFIG_H_
8 #include "base/macros.h"
9 #include "base/memory/singleton.h"
17 // A singleton class to hold global configurations for Courgette, mainly for
18 // experimental purposes.
19 class CourgetteConfig
{
21 static CourgetteConfig
* GetInstance();
23 void Initialize(const base::CommandLine
& command_line
);
25 bool is_experimental() const { return is_experimental_
; }
27 uint32
ensemble_version() const;
30 bool is_experimental_
;
34 friend struct DefaultSingletonTraits
<CourgetteConfig
>;
37 } // namespace courgette
39 #endif // COURGETTE_COURGETTE_CONFIG_H_