DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerator
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 MEDIA_BASE_KEY_FETCHER_H_
8 #define MEDIA_BASE_KEY_FETCHER_H_
9 
10 #include "base/macros.h"
11 #include "packager/media/base/status.h"
12 
13 namespace edash_packager {
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 edash_packager
38 
39 #endif // MEDIA_BASE_KEY_FETCHER_H_
40 
Base class for fetching keys from the license service.
Definition: key_fetcher.h:17
virtual Status FetchKeys(const std::string &service_address, const std::string &request, std::string *response)=0