| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_MEDIA_WV_TEST_LICENSE_SERVER_CONFIG_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_WV_TEST_LICENSE_SERVER_CONFIG_H_ |
| 6 #define CHROME_BROWSER_MEDIA_WV_TEST_LICENSE_SERVER_CONFIG_H_ | 6 #define CHROME_BROWSER_MEDIA_WV_TEST_LICENSE_SERVER_CONFIG_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chrome/browser/media/test_license_server_config.h" | 11 #include "chrome/browser/media/test_license_server_config.h" |
| 12 | 12 |
| 13 namespace base { |
| 14 class FilePath; |
| 15 } |
| 16 |
| 13 // License configuration to run the Widevine test license server. | 17 // License configuration to run the Widevine test license server. |
| 14 class WVTestLicenseServerConfig : public TestLicenseServerConfig { | 18 class WVTestLicenseServerConfig : public TestLicenseServerConfig { |
| 15 public: | 19 public: |
| 16 WVTestLicenseServerConfig(); | 20 WVTestLicenseServerConfig(); |
| 17 ~WVTestLicenseServerConfig() override; | 21 ~WVTestLicenseServerConfig() override; |
| 18 | 22 |
| 19 std::string GetServerURL() override; | 23 std::string GetServerURL() override; |
| 20 | 24 |
| 21 bool GetServerCommandLine(base::CommandLine* command_line) override; | 25 bool GetServerCommandLine(base::CommandLine* command_line) override; |
| 22 | 26 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 34 // <license_server_root_path>/<platform>/ | 38 // <license_server_root_path>/<platform>/ |
| 35 void GetLicenseServerPath(base::FilePath* path); | 39 void GetLicenseServerPath(base::FilePath* path); |
| 36 | 40 |
| 37 // Sets the server port to a randomly available port within a limited range. | 41 // Sets the server port to a randomly available port within a limited range. |
| 38 bool SelectServerPort(); | 42 bool SelectServerPort(); |
| 39 | 43 |
| 40 DISALLOW_COPY_AND_ASSIGN(WVTestLicenseServerConfig); | 44 DISALLOW_COPY_AND_ASSIGN(WVTestLicenseServerConfig); |
| 41 }; | 45 }; |
| 42 | 46 |
| 43 #endif // CHROME_BROWSER_MEDIA_WV_TEST_LICENSE_SERVER_CONFIG_H_ | 47 #endif // CHROME_BROWSER_MEDIA_WV_TEST_LICENSE_SERVER_CONFIG_H_ |
| OLD | NEW |