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

Side by Side Diff: chrome/gpu/gpu_video_service.cc

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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/gpu/gpu_video_service.h ('k') | chrome/nacl/broker_thread.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/common/gpu_messages.h" 5 #include "chrome/common/gpu_messages.h"
6 #include "chrome/gpu/gpu_channel.h" 6 #include "chrome/gpu/gpu_channel.h"
7 #include "chrome/gpu/gpu_video_decoder.h" 7 #include "chrome/gpu/gpu_video_decoder.h"
8 #include "chrome/gpu/gpu_video_service.h" 8 #include "chrome/gpu/gpu_video_service.h"
9 9
10 struct GpuVideoService::GpuVideoDecoderInfo { 10 struct GpuVideoService::GpuVideoDecoderInfo {
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 void GpuVideoService::OnChannelConnected(int32 peer_pid) { 31 void GpuVideoService::OnChannelConnected(int32 peer_pid) {
32 LOG(ERROR) << "GpuVideoService::OnChannelConnected"; 32 LOG(ERROR) << "GpuVideoService::OnChannelConnected";
33 } 33 }
34 34
35 void GpuVideoService::OnChannelError() { 35 void GpuVideoService::OnChannelError() {
36 LOG(ERROR) << "GpuVideoService::OnChannelError"; 36 LOG(ERROR) << "GpuVideoService::OnChannelError";
37 } 37 }
38 38
39 void GpuVideoService::OnMessageReceived(const IPC::Message& msg) { 39 bool GpuVideoService::OnMessageReceived(const IPC::Message& msg) {
40 #if 0 40 #if 0
41 IPC_BEGIN_MESSAGE_MAP(GpuVideoService, msg) 41 IPC_BEGIN_MESSAGE_MAP(GpuVideoService, msg)
42 IPC_MESSAGE_UNHANDLED_ERROR() 42 IPC_MESSAGE_UNHANDLED_ERROR()
43 IPC_END_MESSAGE_MAP() 43 IPC_END_MESSAGE_MAP()
44 #endif 44 #endif
45 return false;
45 } 46 }
46 47
47 bool GpuVideoService::IntializeGpuVideoService() { 48 bool GpuVideoService::IntializeGpuVideoService() {
48 return true; 49 return true;
49 } 50 }
50 51
51 bool GpuVideoService::UnintializeGpuVideoService() { 52 bool GpuVideoService::UnintializeGpuVideoService() {
52 return true; 53 return true;
53 } 54 }
54 55
(...skipping 17 matching lines...) Expand all
72 decoder_host_id, decoder_id)); 73 decoder_host_id, decoder_id));
73 return true; 74 return true;
74 } 75 }
75 76
76 void GpuVideoService::DestroyVideoDecoder( 77 void GpuVideoService::DestroyVideoDecoder(
77 MessageRouter* router, 78 MessageRouter* router,
78 int32 decoder_id) { 79 int32 decoder_id) {
79 router->RemoveRoute(decoder_id); 80 router->RemoveRoute(decoder_id);
80 decoder_map_.erase(decoder_id); 81 decoder_map_.erase(decoder_id);
81 } 82 }
OLDNEW
« no previous file with comments | « chrome/gpu/gpu_video_service.h ('k') | chrome/nacl/broker_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698