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

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

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 5 years 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/null_video_sink_unittest.cc ('k') | media/base/pipeline_unittest.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_STATUS_H_ 5 #ifndef MEDIA_BASE_PIPELINE_STATUS_H_
6 #define MEDIA_BASE_PIPELINE_STATUS_H_ 6 #define MEDIA_BASE_PIPELINE_STATUS_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 9
10 #include <stdint.h>
11
10 #include <string> 12 #include <string>
11 13
12 namespace media { 14 namespace media {
13 15
14 // Status states for pipeline. All codes except PIPELINE_OK indicate errors. 16 // Status states for pipeline. All codes except PIPELINE_OK indicate errors.
15 // Logged to UMA, so never reuse a value, always add new/greater ones! 17 // Logged to UMA, so never reuse a value, always add new/greater ones!
16 // TODO(vrk/scherkus): Trim the unused status codes. (crbug.com/126070) 18 // TODO(vrk/scherkus): Trim the unused status codes. (crbug.com/126070)
17 enum PipelineStatus { 19 enum PipelineStatus {
18 PIPELINE_OK = 0, 20 PIPELINE_OK = 0,
19 PIPELINE_ERROR_URL_NOT_FOUND = 1, 21 PIPELINE_ERROR_URL_NOT_FOUND = 1,
(...skipping 27 matching lines...) Expand all
47 int64_t video_memory_usage = 0; 49 int64_t video_memory_usage = 0;
48 }; 50 };
49 51
50 // Used for updating pipeline statistics; the passed value should be a delta 52 // Used for updating pipeline statistics; the passed value should be a delta
51 // of all attributes since the last update. 53 // of all attributes since the last update.
52 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB; 54 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB;
53 55
54 } // namespace media 56 } // namespace media
55 57
56 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ 58 #endif // MEDIA_BASE_PIPELINE_STATUS_H_
OLDNEW
« no previous file with comments | « media/base/null_video_sink_unittest.cc ('k') | media/base/pipeline_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698