Shaka Packager SDK
progress_listener.h
1 // Copyright 2015 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 // Event handler for progress updates.
8 
9 #ifndef PACKAGER_MEDIA_EVENT_PROGRESS_LISTENER_H_
10 #define PACKAGER_MEDIA_EVENT_PROGRESS_LISTENER_H_
11 
12 #include <cstdint>
13 
14 #include <packager/macros/classes.h>
15 
16 namespace shaka {
17 namespace media {
18 
21  public:
22  virtual ~ProgressListener() {}
23 
26  virtual void OnProgress(double progress) = 0;
27 
28  protected:
29  ProgressListener() {}
30 
31  private:
32  DISALLOW_COPY_AND_ASSIGN(ProgressListener);
33 };
34 
35 } // namespace media
36 } // namespace shaka
37 
38 #endif // PACKAGER_MEDIA_EVENT_PROGRESS_LISTENER_H_
This class listens to progress updates events.
virtual void OnProgress(double progress)=0
All the methods that are virtual are virtual for mocking.
Definition: crypto_flags.cc:66