Update V8 to version 4.7.24.
[chromium-blink-merge.git] / courgette / courgette_config.h
blobcbcfc2219e118f28a319d64f8e523177c48ffff0
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"
11 namespace base {
12 class CommandLine;
13 } // namespace base
15 namespace courgette {
17 // A singleton class to hold global configurations for Courgette, mainly for
18 // experimental purposes.
19 class CourgetteConfig {
20 public:
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;
29 private:
30 bool is_experimental_;
32 CourgetteConfig();
34 friend struct DefaultSingletonTraits<CourgetteConfig>;
37 } // namespace courgette
39 #endif // COURGETTE_COURGETTE_CONFIG_H_