Shaka Packager SDK
key_fetcher.h
1 // Copyright 2014 Google Inc. 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 "base/macros.h"
11 #include "packager/status.h"
12 
13 namespace shaka {
14 namespace media {
15 
17 class KeyFetcher {
18  public:
19  KeyFetcher();
20  virtual ~KeyFetcher();
21 
28  virtual Status FetchKeys(const std::string& service_address,
29  const std::string& request,
30  std::string* response) = 0;
31 
32  private:
33  DISALLOW_COPY_AND_ASSIGN(KeyFetcher);
34 };
35 
36 } // namespace media
37 } // namespace shaka
38 
39 #endif // PACKAGER_MEDIA_BASE_KEY_FETCHER_H_
40 
All the methods that are virtual are virtual for mocking.
virtual Status FetchKeys(const std::string &service_address, const std::string &request, std::string *response)=0
Base class for fetching keys from the license service.
Definition: key_fetcher.h:17