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 REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_
6 #define REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_
13 // Specifies the service API to call for app remoting host information.
14 // Note: When adding new environments, add them before kUnknownEnvironment as
15 // the last entry is used for bounds checking.
16 enum ServiceEnvironment
{
17 kDeveloperEnvironment
,
23 // Used to determine if the service_environment is one of the supported values.
24 bool IsSupportedServiceEnvironment(ServiceEnvironment service_environment
);
26 // Generates and returns a URL for the specified application and environment to
27 // request remote host details.
28 std::string
GetRunApplicationUrl(const std::string
& extension_id
,
29 ServiceEnvironment service_environment
);
31 // Generates and returns a URL for the specified application and environment to
33 std::string
GetReportIssueUrl(const std::string
& extension_id
,
34 const std::string
& host_id
,
35 ServiceEnvironment service_environment
);
38 } // namespace remoting
40 #endif // REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_