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

Unified Diff: media/gpu/ipc/service/media_gpu_channel.h

Issue 2526953003: Add MediaGpuChannelManager::LookupChannel(). (Closed)
Patch Set: Implement MockGpuVideoAcceleratorFactories::GetCommandBufferRouteId(). Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: media/gpu/ipc/service/media_gpu_channel.h
diff --git a/media/gpu/ipc/service/media_gpu_channel.h b/media/gpu/ipc/service/media_gpu_channel.h
index 3b0799e430a3877be657a97e79c4253b28015e86..547b26af0428bde292db5950393fe42c656702a2 100644
--- a/media/gpu/ipc/service/media_gpu_channel.h
+++ b/media/gpu/ipc/service/media_gpu_channel.h
@@ -7,6 +7,7 @@
#include <memory>
+#include "base/unguessable_token.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
#include "media/gpu/ipc/service/gpu_jpeg_decode_accelerator.h"
@@ -26,7 +27,8 @@ class MediaGpuChannelDispatchHelper;
class MediaGpuChannel : public IPC::Listener, public IPC::Sender {
public:
- explicit MediaGpuChannel(gpu::GpuChannel* channel);
+ MediaGpuChannel(gpu::GpuChannel* channel,
+ const base::UnguessableToken& channel_token);
~MediaGpuChannel() override;
// IPC::Sender implementation:
@@ -49,6 +51,7 @@ class MediaGpuChannel : public IPC::Listener, public IPC::Sender {
IPC::Message* reply_message);
gpu::GpuChannel* const channel_;
+ base::UnguessableToken channel_token_;
std::unique_ptr<GpuJpegDecodeAccelerator> jpeg_decoder_;
DISALLOW_COPY_AND_ASSIGN(MediaGpuChannel);
};
« no previous file with comments | « content/renderer/media/renderer_gpu_video_accelerator_factories.cc ('k') | media/gpu/ipc/service/media_gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698