| OLD | NEW |
| 1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008-2009 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 // Implementation of FilterHost. | 5 // Implementation of FilterHost. |
| 6 | 6 |
| 7 #ifndef MEDIA_BASE_FILTER_HOST_IMPL_H_ | 7 #ifndef MEDIA_BASE_FILTER_HOST_IMPL_H_ |
| 8 #define MEDIA_BASE_FILTER_HOST_IMPL_H_ | 8 #define MEDIA_BASE_FILTER_HOST_IMPL_H_ |
| 9 | 9 |
| 10 #include "base/task.h" | 10 #include "base/task.h" |
| 11 #include "media/base/filter_host.h" | 11 #include "media/base/filter_host.h" |
| 12 #include "media/base/pipeline_impl.h" | 12 #include "media/base/pipeline_impl.h" |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 class FilterHostImpl : public FilterHost { | 16 class FilterHostImpl : public FilterHost { |
| 17 public: | 17 public: |
| 18 // FilterHost interface. | 18 // FilterHost interface. |
| 19 virtual void Error(PipelineError error); | 19 virtual void SetError(PipelineError error); |
| 20 virtual base::TimeDelta GetTime() const; | 20 virtual base::TimeDelta GetTime() const; |
| 21 virtual void SetTime(base::TimeDelta time); | 21 virtual void SetTime(base::TimeDelta time); |
| 22 virtual void SetDuration(base::TimeDelta duration); | 22 virtual void SetDuration(base::TimeDelta duration); |
| 23 virtual void SetBufferedTime(base::TimeDelta buffered_time); | 23 virtual void SetBufferedTime(base::TimeDelta buffered_time); |
| 24 virtual void SetTotalBytes(int64 total_bytes); | 24 virtual void SetTotalBytes(int64 total_bytes); |
| 25 virtual void SetBufferedBytes(int64 buffered_bytes); | 25 virtual void SetBufferedBytes(int64 buffered_bytes); |
| 26 virtual void SetVideoSize(size_t width, size_t height); | 26 virtual void SetVideoSize(size_t width, size_t height); |
| 27 | 27 |
| 28 // These methods are public, but are intended for use by the | 28 // These methods are public, but are intended for use by the |
| 29 // PipelineInternal class only. | 29 // PipelineInternal class only. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 // Used to avoid calling Filter's Stop() method multiple times. | 76 // Used to avoid calling Filter's Stop() method multiple times. |
| 77 bool stopped_; | 77 bool stopped_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(FilterHostImpl); | 79 DISALLOW_COPY_AND_ASSIGN(FilterHostImpl); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace media | 82 } // namespace media |
| 83 | 83 |
| 84 #endif // MEDIA_BASE_FILTER_HOST_IMPL_H_ | 84 #endif // MEDIA_BASE_FILTER_HOST_IMPL_H_ |
| OLD | NEW |