Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: media/base/pipeline.h

Issue 1409123005: Add methods for telling V8 how much memory audio/video is using. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix html viewer. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/pipeline.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef MEDIA_BASE_PIPELINE_H_ 5 #ifndef MEDIA_BASE_PIPELINE_H_
6 #define MEDIA_BASE_PIPELINE_H_ 6 #define MEDIA_BASE_PIPELINE_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 void OnDemuxerError(PipelineStatus error) override; 220 void OnDemuxerError(PipelineStatus error) override;
221 void AddTextStream(DemuxerStream* text_stream, 221 void AddTextStream(DemuxerStream* text_stream,
222 const TextTrackConfig& config) override; 222 const TextTrackConfig& config) override;
223 void RemoveTextStream(DemuxerStream* text_stream) override; 223 void RemoveTextStream(DemuxerStream* text_stream) override;
224 224
225 // Callback executed when a rendering error happened, initiating the teardown 225 // Callback executed when a rendering error happened, initiating the teardown
226 // sequence. 226 // sequence.
227 void OnError(PipelineStatus error); 227 void OnError(PipelineStatus error);
228 228
229 // Callback executed by filters to update statistics. 229 // Callback executed by filters to update statistics.
230 void OnUpdateStatistics(const PipelineStatistics& stats); 230 void OnUpdateStatistics(const PipelineStatistics& stats_delta);
231 231
232 // The following "task" methods correspond to the public methods, but these 232 // The following "task" methods correspond to the public methods, but these
233 // methods are run as the result of posting a task to the Pipeline's 233 // methods are run as the result of posting a task to the Pipeline's
234 // task runner. 234 // task runner.
235 void StartTask(); 235 void StartTask();
236 236
237 // Stops and destroys all filters, placing the pipeline in the kStopped state. 237 // Stops and destroys all filters, placing the pipeline in the kStopped state.
238 void StopTask(const base::Closure& stop_cb); 238 void StopTask(const base::Closure& stop_cb);
239 239
240 // Carries out stopping and destroying all filters, placing the pipeline in 240 // Carries out stopping and destroying all filters, placing the pipeline in
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 382
383 // NOTE: Weak pointers must be invalidated before all other member variables. 383 // NOTE: Weak pointers must be invalidated before all other member variables.
384 base::WeakPtrFactory<Pipeline> weak_factory_; 384 base::WeakPtrFactory<Pipeline> weak_factory_;
385 385
386 DISALLOW_COPY_AND_ASSIGN(Pipeline); 386 DISALLOW_COPY_AND_ASSIGN(Pipeline);
387 }; 387 };
388 388
389 } // namespace media 389 } // namespace media
390 390
391 #endif // MEDIA_BASE_PIPELINE_H_ 391 #endif // MEDIA_BASE_PIPELINE_H_
OLDNEW
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698