| 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 REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_ | 5 #ifndef REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_ |
| 6 #define REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_ | 6 #define REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| 11 namespace test { | 11 namespace test { |
| 12 | 12 |
| 13 // Specifies the service API to call for app remoting host information. | 13 // Specifies the service API to call for app remoting host information. |
| 14 // Note: When adding new environments, add them before kUnknownEnvironment as | 14 // Note: When adding new environments, add them before kUnknownEnvironment as |
| 15 // the last entry is used for bounds checking. | 15 // the last entry is used for bounds checking. |
| 16 enum ServiceEnvironment { | 16 enum ServiceEnvironment { |
| 17 kDeveloperEnvironment, | 17 kDeveloperEnvironment, |
| 18 kTestingEnvironment, | |
| 19 kStagingEnvironment, | |
| 20 kUnknownEnvironment | 18 kUnknownEnvironment |
| 21 }; | 19 }; |
| 22 | 20 |
| 23 // Used to determine if the service_environment is one of the supported values. | 21 // Used to determine if the service_environment is one of the supported values. |
| 24 bool IsSupportedServiceEnvironment(ServiceEnvironment service_environment); | 22 bool IsSupportedServiceEnvironment(ServiceEnvironment service_environment); |
| 25 | 23 |
| 26 // Generates and returns a URL for the specified application and environment to | 24 // Generates and returns a URL for the specified application and environment to |
| 27 // request remote host details. | 25 // request remote host details. |
| 28 std::string GetRunApplicationUrl(const std::string& extension_id, | 26 std::string GetRunApplicationUrl(const std::string& extension_id, |
| 29 ServiceEnvironment service_environment); | 27 ServiceEnvironment service_environment); |
| 30 | 28 |
| 31 // Generates and returns a URL for the specified application and environment to | 29 // Generates and returns a URL for the specified application and environment to |
| 32 // report an issue. | 30 // report an issue. |
| 33 std::string GetReportIssueUrl(const std::string& extension_id, | 31 std::string GetReportIssueUrl(const std::string& extension_id, |
| 34 const std::string& host_id, | 32 const std::string& host_id, |
| 35 ServiceEnvironment service_environment); | 33 ServiceEnvironment service_environment); |
| 36 | 34 |
| 37 } // namespace test | 35 } // namespace test |
| 38 } // namespace remoting | 36 } // namespace remoting |
| 39 | 37 |
| 40 #endif // REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_ | 38 #endif // REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_ |
| OLD | NEW |