| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BLIMP_ENGINE_APP_BLIMP_ENGINE_CONFIG_H_ | 5 #ifndef BLIMP_ENGINE_APP_BLIMP_ENGINE_CONFIG_H_ |
| 6 #define BLIMP_ENGINE_APP_BLIMP_ENGINE_CONFIG_H_ | 6 #define BLIMP_ENGINE_APP_BLIMP_ENGINE_CONFIG_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 class CommandLine; | 14 class CommandLine; |
| 15 } // namespace base | 15 } // namespace base |
| 16 | 16 |
| 17 namespace blimp { | 17 namespace blimp { |
| 18 namespace engine { | 18 namespace engine { |
| 19 | 19 |
| 20 // Set internal command line switches for Blimp engine. |
| 21 void SetCommandLineDefaults(base::CommandLine* command_line); |
| 22 |
| 20 // Class to hold all of the configuration bits necessary for the Blimp engine. | 23 // Class to hold all of the configuration bits necessary for the Blimp engine. |
| 21 // | 24 // |
| 22 // The BlimpEngineConfig class is initialized from parameters provided on the | 25 // The BlimpEngineConfig class is initialized from parameters provided on the |
| 23 // command line. For the switches to pass verification: | 26 // command line. For the switches to pass verification: |
| 24 // * A client token filepath must be provided and the file must have a | 27 // * A client token filepath must be provided and the file must have a |
| 25 // non-empty token. | 28 // non-empty token. |
| 26 // | 29 // |
| 27 // The BlimpEngineConfig object is intended to live as long as the engine is | 30 // The BlimpEngineConfig object is intended to live as long as the engine is |
| 28 // running. It should also be one of the first things to be set up. | 31 // running. It should also be one of the first things to be set up. |
| 29 class BlimpEngineConfig { | 32 class BlimpEngineConfig { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 49 | 52 |
| 50 const std::string client_token_; | 53 const std::string client_token_; |
| 51 | 54 |
| 52 DISALLOW_COPY_AND_ASSIGN(BlimpEngineConfig); | 55 DISALLOW_COPY_AND_ASSIGN(BlimpEngineConfig); |
| 53 }; | 56 }; |
| 54 | 57 |
| 55 } // namespace engine | 58 } // namespace engine |
| 56 } // namespace blimp | 59 } // namespace blimp |
| 57 | 60 |
| 58 #endif // BLIMP_ENGINE_APP_BLIMP_ENGINE_CONFIG_H_ | 61 #endif // BLIMP_ENGINE_APP_BLIMP_ENGINE_CONFIG_H_ |
| OLD | NEW |