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

Side by Side Diff: chrome/renderer/gpu_channel_host.h

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/geolocation_dispatcher_old.h ('k') | chrome/renderer/gpu_channel_host.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 (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 #ifndef CHROME_RENDERER_GPU_CHANNEL_HOST_H_ 5 #ifndef CHROME_RENDERER_GPU_CHANNEL_HOST_H_
6 #define CHROME_RENDERER_GPU_CHANNEL_HOST_H_ 6 #define CHROME_RENDERER_GPU_CHANNEL_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // Connect to GPU process channel. 46 // Connect to GPU process channel.
47 void Connect(const IPC::ChannelHandle& channel_handle); 47 void Connect(const IPC::ChannelHandle& channel_handle);
48 48
49 State state() const { return state_; } 49 State state() const { return state_; }
50 50
51 // The GPU stats reported by the GPU process. 51 // The GPU stats reported by the GPU process.
52 void set_gpu_info(const GPUInfo& gpu_info); 52 void set_gpu_info(const GPUInfo& gpu_info);
53 const GPUInfo& gpu_info() const; 53 const GPUInfo& gpu_info() const;
54 54
55 // IPC::Channel::Listener implementation: 55 // IPC::Channel::Listener implementation:
56 virtual void OnMessageReceived(const IPC::Message& msg); 56 virtual bool OnMessageReceived(const IPC::Message& msg);
57 virtual void OnChannelConnected(int32 peer_pid); 57 virtual void OnChannelConnected(int32 peer_pid);
58 virtual void OnChannelError(); 58 virtual void OnChannelError();
59 59
60 // IPC::Message::Sender implementation: 60 // IPC::Message::Sender implementation:
61 virtual bool Send(IPC::Message* msg); 61 virtual bool Send(IPC::Message* msg);
62 62
63 // Create and connect to a command buffer in the GPU process. 63 // Create and connect to a command buffer in the GPU process.
64 CommandBufferProxy* CreateViewCommandBuffer( 64 CommandBufferProxy* CreateViewCommandBuffer(
65 gfx::NativeViewId view, 65 gfx::NativeViewId view,
66 int render_view_id, 66 int render_view_id,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 ProxyMap proxies_; 99 ProxyMap proxies_;
100 100
101 // This is a MessageFilter to intercept IPC messages and distribute them 101 // This is a MessageFilter to intercept IPC messages and distribute them
102 // to the corresponding GpuVideoDecoderHost. 102 // to the corresponding GpuVideoDecoderHost.
103 scoped_refptr<GpuVideoServiceHost> gpu_video_service_host_; 103 scoped_refptr<GpuVideoServiceHost> gpu_video_service_host_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 105 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
106 }; 106 };
107 107
108 #endif // CHROME_RENDERER_GPU_CHANNEL_HOST_H_ 108 #endif // CHROME_RENDERER_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « chrome/renderer/geolocation_dispatcher_old.h ('k') | chrome/renderer/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698