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

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

Issue 8699008: Use callback_forward.h instead of callback.h where possible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome_frame/sync_msg_reply_dispatcher.h ('k') | ui/gfx/surface/accelerated_surface_win.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_MOCK_READER_H_ 5 #ifndef MEDIA_BASE_MOCK_READER_H_
6 #define MEDIA_BASE_MOCK_READER_H_ 6 #define MEDIA_BASE_MOCK_READER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback_forward.h"
Ami GONE FROM CHROMIUM 2011/11/28 17:27:45 No longer needed?
erikwright (departed) 2011/11/28 19:12:19 Thanks. My magic grep scripts only checked if the
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "media/base/filters.h" 13 #include "media/base/filters.h"
14 14
15 namespace media { 15 namespace media {
16 16
17 // Ref counted object so we can create callbacks for asynchronous Read() 17 // Ref counted object so we can create callbacks for asynchronous Read()
18 // methods for any filter type. 18 // methods for any filter type.
19 template <class FilterType, class BufferType> 19 template <class FilterType, class BufferType>
20 class MockReader 20 class MockReader
21 : public base::RefCountedThreadSafe<MockReader<FilterType, BufferType> > { 21 : public base::RefCountedThreadSafe<MockReader<FilterType, BufferType> > {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 DISALLOW_COPY_AND_ASSIGN(MockReader); 70 DISALLOW_COPY_AND_ASSIGN(MockReader);
71 }; 71 };
72 72
73 // Commonly used reader types. 73 // Commonly used reader types.
74 typedef MockReader<DemuxerStream, Buffer> DemuxerStreamReader; 74 typedef MockReader<DemuxerStream, Buffer> DemuxerStreamReader;
75 75
76 } // namespace media 76 } // namespace media
77 77
78 #endif // MEDIA_BASE_MOCK_READER_H_ 78 #endif // MEDIA_BASE_MOCK_READER_H_
OLDNEW
« no previous file with comments | « chrome_frame/sync_msg_reply_dispatcher.h ('k') | ui/gfx/surface/accelerated_surface_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698