When Retrier succeeds, record errors it encountered.
[chromium-blink-merge.git] / webkit / media / websourcebuffer_impl.h
blob6d8bd858c64d04bc3a299a9b0a8ec80124407357
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WEBKIT_MEDIA_WEBSOURCEBUFFER_IMPL_H_
6 #define WEBKIT_MEDIA_WEBSOURCEBUFFER_IMPL_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSourceBuffer.h"
14 namespace media {
15 class ChunkDemuxer;
18 namespace webkit_media {
20 class WebSourceBufferImpl : public WebKit::WebSourceBuffer {
21 public:
22 WebSourceBufferImpl(const std::string& id, media::ChunkDemuxer* demuxer);
23 virtual ~WebSourceBufferImpl();
25 // WebKit::WebSourceBuffer implementation.
26 virtual WebKit::WebTimeRanges buffered() OVERRIDE;
27 virtual void append(const unsigned char* data, unsigned length) OVERRIDE;
28 virtual void abort() OVERRIDE;
29 virtual bool setTimestampOffset(double offset) OVERRIDE;
30 virtual void removedFromMediaSource() OVERRIDE;
32 private:
33 std::string id_;
34 media::ChunkDemuxer* demuxer_; // Owned by WebMediaPlayerImpl.
36 DISALLOW_COPY_AND_ASSIGN(WebSourceBufferImpl);
39 } // namespace webkit_media
41 #endif // WEBKIT_MEDIA_WEBSOURCEBUFFER_IMPL_H_