<divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">// Copyright 2017 Google Inc. All rights reserved.</span></div><divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment">//</span></div><divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment">// Use of this source code is governed by a BSD-style</span></div><divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment">// license that can be found in the LICENSE file or at</span></div><divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment">// https://developers.google.com/open-source/licenses/bsd</span></div><divclass="line"><aname="l00006"></a><spanclass="lineno"> 6</span> </div><divclass="line"><aname="l00007"></a><spanclass="lineno"> 7</span> <spanclass="preprocessor">#ifndef PACKAGER_MEDIA_CHUNKING_CHUNKING_HANDLER_</span></div><divclass="line"><aname="l00008"></a><spanclass="lineno"> 8</span> <spanclass="preprocessor">#define PACKAGER_MEDIA_CHUNKING_CHUNKING_HANDLER_</span></div><divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> </div><divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> <spanclass="preprocessor">#include <atomic></span></div><divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="preprocessor">#include <queue></span></div><divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> </div><divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="preprocessor">#include "packager/base/logging.h"</span></div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="preprocessor">#include "packager/media/base/media_handler.h"</span></div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="preprocessor">#include "packager/media/public/chunking_params.h"</span></div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> </div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="keyword">namespace </span><aclass="code"href="../../d8/daf/namespaceshaka.html">shaka</a> {</div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="keyword">namespace </span>media {</div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> </div><divclass="line"><aname="l00046"></a><spanclass="lineno"><aclass="line"href="../../d4/d43/classshaka_1_1media_1_1ChunkingHandler.html"> 46</a></span> <spanclass="keyword">class </span><aclass="code"href="../../d4/d43/classshaka_1_1media_1_1ChunkingHandler.html">ChunkingHandler</a> : <spanclass="keyword">public</span><aclass="code"href="../../da/dfd/classshaka_1_1media_1_1MediaHandler.html">MediaHandler</a> {</div><divclass="line"><aname="l00047"></a><spanclass="lineno"> 47</span> <spanclass="keyword">public</span>:</div><divclass="line"><aname="l00048"></a><spanclass="lineno"> 48</span> <spanclass="keyword">explicit</span><aclass="code"href="../../d4/d43/classshaka_1_1media_1_1ChunkingHandler.html">ChunkingHandler</a>(<spanclass="keyword">const</span><aclass="code"href="../../d2/d1f/structshaka_1_1ChunkingParams.html">ChunkingParams</a>& chunking_params);</div><divclass="line"><aname="l00049"></a><spanclass="lineno"> 49</span>  ~<aclass="code"href="../../d4/d43/classshaka_1_1media_1_1ChunkingHandler.html">ChunkingHandler</a>() <spanclass="keyword">override</span>;</div><divclass="line"><aname="l00050"></a><spanclass="lineno"> 50</span> </div><divclass="line"><aname="l00051"></a><spanclass="lineno"> 51</span> <spanclass="keyword">protected</span>:</div><divclass="line"><aname="l00054"></a><spanclass="lineno">
<divclass="ttc"id="namespaceshaka_html"><divclass="ttname"><ahref="../../d8/daf/namespaceshaka.html">shaka</a></div><divclass="ttdoc">All the methods that are virtual are virtual for mocking. </div><divclass="ttdef"><b>Definition:</b><ahref="../../d4/d15/gflags__hex__bytes_8cc_source.html#l00011">gflags_hex_bytes.cc:11</a></div></div>
<divclass="ttc"id="classshaka_1_1media_1_1ChunkingHandler_html_ab526bd53e4d49d7209f01d9b10b9ab52"><divclass="ttname"><ahref="../../d4/d43/classshaka_1_1media_1_1ChunkingHandler.html#ab526bd53e4d49d7209f01d9b10b9ab52">shaka::media::ChunkingHandler::OnFlushRequest</a></div><divclass="ttdeci">Status OnFlushRequest(size_t input_stream_index) override</div><divclass="ttdoc">Event handler for flush request at the specific input stream index. </div><divclass="ttdef"><b>Definition:</b><ahref="../../d9/d12/chunking__handler_8cc_source.html#l00137">chunking_handler.cc:137</a></div></div>
<divclass="ttc"id="structshaka_1_1ChunkingParams_html"><divclass="ttname"><ahref="../../d2/d1f/structshaka_1_1ChunkingParams.html">shaka::ChunkingParams</a></div><divclass="ttdoc">Chunking (segmentation) related parameters. </div><divclass="ttdef"><b>Definition:</b><ahref="../../db/d79/chunking__params_8h_source.html#l00013">chunking_params.h:13</a></div></div>
<divclass="ttc"id="classshaka_1_1media_1_1MediaSample_html"><divclass="ttname"><ahref="../../d7/d6d/classshaka_1_1media_1_1MediaSample.html">shaka::media::MediaSample</a></div><divclass="ttdoc">Class to hold a media sample. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/d80/media__sample_8h_source.html#l00022">media_sample.h:22</a></div></div>