summaryrefslogtreecommitdiffstats
path: root/chrome/browser/media/test_license_server_config.h
blob: b25da781cce54726d17457f6e26508f9823ed753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_MEDIA_TEST_LICENSE_SERVER_CONFIG_H_
#define CHROME_BROWSER_MEDIA_TEST_LICENSE_SERVER_CONFIG_H_

#include <string>
#include "base/basictypes.h"

class CommandLine;

namespace base {
  class FilePath;
}

// Class used to start a test license server.
class TestLicenseServerConfig {
 public:
  TestLicenseServerConfig() {}
  virtual ~TestLicenseServerConfig() {}

  // Returns a string containing the URL and port the server is listening to.
  // This URL is directly used by the Web app to request a license, example:
  // http://localhost:8888/license_server
  virtual std::string GetServerURL() = 0;

  // Returns true if it successfully sets the command line to run the license
  // server with needed args and switches.
  virtual bool GetServerCommandLine(CommandLine* command_line) = 0;

  // Returns true if the server is supported on current platform.
  virtual bool IsPlatformSupported() = 0;

 private:
  DISALLOW_COPY_AND_ASSIGN(TestLicenseServerConfig);
};

#endif  // CHROME_BROWSER_MEDIA_TEST_LICENSE_SERVER_CONFIG_H_