| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // Defines all the command-line switches used by //blimp/client/core. | 5 // Defines all the command-line switches used by //blimp/client/core. |
| 6 | 6 |
| 7 #ifndef BLIMP_CLIENT_CORE_SWITCHES_BLIMP_CLIENT_SWITCHES_H_ | 7 #ifndef BLIMP_CLIENT_CORE_SWITCHES_BLIMP_CLIENT_SWITCHES_H_ |
| 8 #define BLIMP_CLIENT_CORE_SWITCHES_BLIMP_CLIENT_SWITCHES_H_ | 8 #define BLIMP_CLIENT_CORE_SWITCHES_BLIMP_CLIENT_SWITCHES_H_ |
| 9 | 9 |
| 10 namespace blimp { | 10 namespace blimp { |
| 11 namespace switches { | 11 namespace switches { |
| 12 | 12 |
| 13 // Enables blimp mode. |
| 14 extern const char kEnableBlimp[]; |
| 15 |
| 13 // The path to the engine's PEM-encoded X509 certificate. | 16 // The path to the engine's PEM-encoded X509 certificate. |
| 14 // If specified, SSL connected Engines must supply this certificate | 17 // If specified, SSL connected Engines must supply this certificate |
| 15 // for the connection to be valid. | 18 // for the connection to be valid. |
| 16 // e.g.: | 19 // e.g.: |
| 17 // --engine-cert-path=/home/blimp/certs/cert.pem | 20 // --engine-cert-path=/home/blimp/certs/cert.pem |
| 18 extern const char kEngineCertPath[]; | 21 extern const char kEngineCertPath[]; |
| 19 | 22 |
| 20 // Specifies the engine's IP address. Must be used in conjunction with | 23 // Specifies the engine's IP address. Must be used in conjunction with |
| 21 // --engine-port and --engine-transport. | 24 // --engine-port and --engine-transport. |
| 22 extern const char kEngineIP[]; | 25 extern const char kEngineIP[]; |
| 23 | 26 |
| 24 // Specifies the engine's listening port (1-65535). | 27 // Specifies the engine's listening port (1-65535). |
| 25 // Must be used in conjunction with --engine-ip and --engine-transport. | 28 // Must be used in conjunction with --engine-ip and --engine-transport. |
| 26 extern const char kEnginePort[]; | 29 extern const char kEnginePort[]; |
| 27 | 30 |
| 28 // Specifies the transport used to communicate with the engine. | 31 // Specifies the transport used to communicate with the engine. |
| 29 // Can be "tcp" or "ssl". | 32 // Can be "tcp" or "ssl". |
| 30 // Must be used in conjunction with --engine-ip and --engine-port. | 33 // Must be used in conjunction with --engine-ip and --engine-port. |
| 31 extern const char kEngineTransport[]; | 34 extern const char kEngineTransport[]; |
| 32 | 35 |
| 33 // Enables downloading the complete page from the engine. | 36 // Enables downloading the complete page from the engine. |
| 34 extern const char kDownloadWholeDocument[]; | 37 extern const char kDownloadWholeDocument[]; |
| 38 } // namespace switches |
| 35 | 39 |
| 36 } // namespace switches | |
| 37 } // namespace blimp | 40 } // namespace blimp |
| 38 | 41 |
| 39 #endif // BLIMP_CLIENT_CORE_SWITCHES_BLIMP_CLIENT_SWITCHES_H_ | 42 #endif // BLIMP_CLIENT_CORE_SWITCHES_BLIMP_CLIENT_SWITCHES_H_ |
| OLD | NEW |