Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / remoting / test / app_remoting_service_urls.h
blobe532fc657ac84e9cff03806e901d57a81bfbc27a
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_
8 #include <string>
10 namespace remoting {
11 namespace test {
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,
18 kTestingEnvironment,
19 kStagingEnvironment,
20 kUnknownEnvironment
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
32 // report an issue.
33 std::string GetReportIssueUrl(const std::string& extension_id,
34 const std::string& host_id,
35 ServiceEnvironment service_environment);
37 } // namespace test
38 } // namespace remoting
40 #endif // REMOTING_TEST_APP_REMOTING_SERVICE_URLS_H_