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

Side by Side Diff: media/mojo/clients/mojo_decryptor.h

Issue 2411573002: media: Use new wrapper types for media mojo interfaces (Closed)
Patch Set: comments addressed Created 4 years, 2 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
« no previous file with comments | « media/mojo/clients/mojo_cdm.cc ('k') | media/mojo/clients/mojo_decryptor.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MOJO_CLIENTS_MOJO_DECRYPTOR_H_ 5 #ifndef MEDIA_MOJO_CLIENTS_MOJO_DECRYPTOR_H_
6 #define MEDIA_MOJO_CLIENTS_MOJO_DECRYPTOR_H_ 6 #define MEDIA_MOJO_CLIENTS_MOJO_DECRYPTOR_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // Called when keys have changed and an additional key is available. 47 // Called when keys have changed and an additional key is available.
48 void OnKeyAdded(); 48 void OnKeyAdded();
49 49
50 private: 50 private:
51 // Called when a buffer is decrypted. 51 // Called when a buffer is decrypted.
52 void OnBufferDecrypted(const DecryptCB& decrypt_cb, 52 void OnBufferDecrypted(const DecryptCB& decrypt_cb,
53 mojom::Decryptor::Status status, 53 mojom::Decryptor::Status status,
54 mojom::DecoderBufferPtr buffer); 54 mojom::DecoderBufferPtr buffer);
55 void OnAudioDecoded(const AudioDecodeCB& audio_decode_cb, 55 void OnAudioDecoded(const AudioDecodeCB& audio_decode_cb,
56 mojom::Decryptor::Status status, 56 mojom::Decryptor::Status status,
57 mojo::Array<mojom::AudioBufferPtr> audio_buffers); 57 std::vector<mojom::AudioBufferPtr> audio_buffers);
58 void OnVideoDecoded(const VideoDecodeCB& video_decode_cb, 58 void OnVideoDecoded(const VideoDecodeCB& video_decode_cb,
59 mojom::Decryptor::Status status, 59 mojom::Decryptor::Status status,
60 mojom::VideoFramePtr video_frame); 60 mojom::VideoFramePtr video_frame);
61 61
62 // Called when done with a VideoFrame in order to reuse the shared memory. 62 // Called when done with a VideoFrame in order to reuse the shared memory.
63 void ReleaseSharedBuffer(mojo::ScopedSharedBufferHandle buffer, 63 void ReleaseSharedBuffer(mojo::ScopedSharedBufferHandle buffer,
64 size_t buffer_size); 64 size_t buffer_size);
65 65
66 base::ThreadChecker thread_checker_; 66 base::ThreadChecker thread_checker_;
67 67
(...skipping 11 matching lines...) Expand all
79 NewKeyCB new_video_key_cb_; 79 NewKeyCB new_video_key_cb_;
80 80
81 base::WeakPtrFactory<MojoDecryptor> weak_factory_; 81 base::WeakPtrFactory<MojoDecryptor> weak_factory_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(MojoDecryptor); 83 DISALLOW_COPY_AND_ASSIGN(MojoDecryptor);
84 }; 84 };
85 85
86 } // namespace media 86 } // namespace media
87 87
88 #endif // MEDIA_MOJO_CLIENTS_MOJO_DECRYPTOR_H_ 88 #endif // MEDIA_MOJO_CLIENTS_MOJO_DECRYPTOR_H_
OLDNEW
« no previous file with comments | « media/mojo/clients/mojo_cdm.cc ('k') | media/mojo/clients/mojo_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698