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

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

Issue 1625015: Refactor ChildProcess and related classes to create a framework outside of br... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 years, 8 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/plugin/plugin_channel_base.h ('k') | chrome/renderer/renderer_glue.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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
11 #include "chrome/common/message_router.h" 11 #include "base/mp/message_router.h"
12 #include "gfx/native_widget_types.h" 12 #include "gfx/native_widget_types.h"
13 #include "gfx/size.h" 13 #include "gfx/size.h"
14 #include "ipc/ipc_channel.h" 14 #include "ipc/ipc_channel.h"
15 #include "ipc/ipc_message.h" 15 #include "ipc/ipc_message.h"
16 #include "ipc/ipc_sync_channel.h" 16 #include "ipc/ipc_sync_channel.h"
17 17
18 class CommandBufferProxy; 18 class CommandBufferProxy;
19 19
20 // Encapsulates an IPC channel between the renderer and one plugin process. 20 // Encapsulates an IPC channel between the renderer and one plugin process.
21 // On the plugin side there's a corresponding GpuChannel. 21 // On the plugin side there's a corresponding GpuChannel.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Destroy a command buffer created by this channel. 65 // Destroy a command buffer created by this channel.
66 void DestroyCommandBuffer(CommandBufferProxy* command_buffer); 66 void DestroyCommandBuffer(CommandBufferProxy* command_buffer);
67 67
68 private: 68 private:
69 State state_; 69 State state_;
70 70
71 scoped_ptr<IPC::SyncChannel> channel_; 71 scoped_ptr<IPC::SyncChannel> channel_;
72 72
73 // Used to implement message routing functionality to CommandBufferProxy 73 // Used to implement message routing functionality to CommandBufferProxy
74 // objects 74 // objects
75 MessageRouter router_; 75 base::MessageRouter router_;
76 76
77 // Keep track of all the registered CommandBufferProxies to 77 // Keep track of all the registered CommandBufferProxies to
78 // inform about OnChannelError 78 // inform about OnChannelError
79 typedef base::hash_map<int, IPC::Channel::Listener*> ProxyMap; 79 typedef base::hash_map<int, IPC::Channel::Listener*> ProxyMap;
80 ProxyMap proxies_; 80 ProxyMap proxies_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 82 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
83 }; 83 };
84 84
85 #endif // CHROME_RENDERER_GPU_CHANNEL_HOST_H_ 85 #endif // CHROME_RENDERER_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « chrome/plugin/plugin_channel_base.h ('k') | chrome/renderer/renderer_glue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698