Shaka Packager SDK
Loading...
Searching...
No Matches
key_fetcher.h
1// Copyright 2014 Google LLC. All rights reserved.
2//
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file or at
5// https://developers.google.com/open-source/licenses/bsd
6
7#ifndef PACKAGER_MEDIA_BASE_KEY_FETCHER_H_
8#define PACKAGER_MEDIA_BASE_KEY_FETCHER_H_
9
10#include <string>
11
12#include <packager/macros/classes.h>
13#include <packager/status.h>
14
15namespace shaka {
16namespace media {
17
20 public:
21 KeyFetcher();
22 virtual ~KeyFetcher();
23
30 virtual Status FetchKeys(const std::string& service_address,
31 const std::string& request,
32 std::string* response) = 0;
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(KeyFetcher);
36};
37
38} // namespace media
39} // namespace shaka
40
41#endif // PACKAGER_MEDIA_BASE_KEY_FETCHER_H_
Base class for fetching keys from the license service.
Definition key_fetcher.h:19
virtual Status FetchKeys(const std::string &service_address, const std::string &request, std::string *response)=0
All the methods that are virtual are virtual for mocking.