Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(668)

Side by Side Diff: chrome/browser/media/wv_test_license_server_config.h

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/browser/media/test_license_server_config.h" 8 #include "chrome/browser/media/test_license_server_config.h"
9 9
10 // License configuration to run the Widevine test license server. 10 // License configuration to run the Widevine test license server.
11 class WVTestLicenseServerConfig : public TestLicenseServerConfig { 11 class WVTestLicenseServerConfig : public TestLicenseServerConfig {
12 public: 12 public:
13 WVTestLicenseServerConfig(); 13 WVTestLicenseServerConfig();
14 virtual ~WVTestLicenseServerConfig(); 14 virtual ~WVTestLicenseServerConfig();
15 15
16 virtual std::string GetServerURL() OVERRIDE; 16 virtual std::string GetServerURL() OVERRIDE;
17 17
18 virtual bool GetServerCommandLine(CommandLine* command_line) OVERRIDE; 18 virtual bool GetServerCommandLine(base::CommandLine* command_line) OVERRIDE;
19 19
20 virtual bool IsPlatformSupported() OVERRIDE; 20 virtual bool IsPlatformSupported() OVERRIDE;
21 21
22 private: 22 private:
23 // Server port. The port value should be set by calling SelectServerPort(). 23 // Server port. The port value should be set by calling SelectServerPort().
24 uint16 port_; 24 uint16 port_;
25 25
26 // Retrieves the path for the WV license server root: 26 // Retrieves the path for the WV license server root:
27 // third_party/widevine/test/license_server/ 27 // third_party/widevine/test/license_server/
28 void GetLicenseServerRootPath(base::FilePath* path); 28 void GetLicenseServerRootPath(base::FilePath* path);
29 29
30 // Retrieves the path for the WV license server: 30 // Retrieves the path for the WV license server:
31 // <license_server_root_path>/<platform>/ 31 // <license_server_root_path>/<platform>/
32 void GetLicenseServerPath(base::FilePath* path); 32 void GetLicenseServerPath(base::FilePath* path);
33 33
34 // Sets the server port to a randomly available port within a limited range. 34 // Sets the server port to a randomly available port within a limited range.
35 bool SelectServerPort(); 35 bool SelectServerPort();
36 36
37 DISALLOW_COPY_AND_ASSIGN(WVTestLicenseServerConfig); 37 DISALLOW_COPY_AND_ASSIGN(WVTestLicenseServerConfig);
38 }; 38 };
39 39
40 #endif // CHROME_BROWSER_MEDIA_WV_TEST_LICENSE_SERVER_CONFIG_H_ 40 #endif // CHROME_BROWSER_MEDIA_WV_TEST_LICENSE_SERVER_CONFIG_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/test_license_server_config.h ('k') | chrome/browser/metrics/thread_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698