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

Side by Side Diff: services/media/framework/parts/reader_cache.h

Issue 2024953003: Motown: Move framework/util/incident* so other services can use it (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 months 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SERVICES_MEDIA_FRAMEWORK_PARTS_READER_CACHE_H_ 5 #ifndef SERVICES_MEDIA_FRAMEWORK_PARTS_READER_CACHE_H_
6 #define SERVICES_MEDIA_FRAMEWORK_PARTS_READER_CACHE_H_ 6 #define SERVICES_MEDIA_FRAMEWORK_PARTS_READER_CACHE_H_
7 7
8 #include <atomic> 8 #include <atomic>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "services/media/framework/parts/reader.h" 13 #include "services/media/framework/parts/reader.h"
14 #include "services/media/framework/parts/sparse_byte_buffer.h" 14 #include "services/media/framework/parts/sparse_byte_buffer.h"
15 #include "services/media/framework/util/incident.h" 15 #include "services/util/cpp/incident.h"
16 16
17 namespace mojo { 17 namespace mojo {
18 namespace media { 18 namespace media {
19 19
20 // Store for reading. 20 // Store for reading.
21 // 21 //
22 // ReaderCache is an Reader filter that reads an entire asset from an 22 // ReaderCache is an Reader filter that reads an entire asset from an
23 // Reader into memory and implements Reader against the cache. 23 // Reader into memory and implements Reader against the cache.
24 // Currently, there is no support for throttling the intake rate or for 24 // Currently, there is no support for throttling the intake rate or for
25 // limiting the amount of memory used by the cache. The entire asset is read 25 // limiting the amount of memory used by the cache. The entire asset is read
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 Store store_; 170 Store store_;
171 Intake intake_; 171 Intake intake_;
172 172
173 ThreadsafeIncident describe_is_complete_; 173 ThreadsafeIncident describe_is_complete_;
174 }; 174 };
175 175
176 } // namespace media 176 } // namespace media
177 } // namespace mojo 177 } // namespace mojo
178 178
179 #endif // SERVICES_MEDIA_FRAMEWORK_PARTS_READER_CACHE_H_ 179 #endif // SERVICES_MEDIA_FRAMEWORK_PARTS_READER_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698