OLD | NEW |
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 "base/scoped_ptr.h" | |
12 #include "chrome/common/message_router.h" | 11 #include "chrome/common/message_router.h" |
13 #include "gfx/native_widget_types.h" | 12 #include "gfx/native_widget_types.h" |
14 #include "gfx/size.h" | 13 #include "gfx/size.h" |
15 #include "ipc/ipc_channel.h" | 14 #include "ipc/ipc_channel.h" |
16 #include "ipc/ipc_message.h" | 15 #include "ipc/ipc_message.h" |
17 #include "ipc/ipc_sync_channel.h" | 16 #include "ipc/ipc_sync_channel.h" |
18 | 17 |
19 class CommandBufferProxy; | 18 class CommandBufferProxy; |
20 | 19 |
21 // Encapsulates an IPC channel between the renderer and one plugin process. | 20 // Encapsulates an IPC channel between the renderer and one plugin process. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 76 |
78 // Keep track of all the registered CommandBufferProxies to | 77 // Keep track of all the registered CommandBufferProxies to |
79 // inform about OnChannelError | 78 // inform about OnChannelError |
80 typedef base::hash_map<int, IPC::Channel::Listener*> ProxyMap; | 79 typedef base::hash_map<int, IPC::Channel::Listener*> ProxyMap; |
81 ProxyMap proxies_; | 80 ProxyMap proxies_; |
82 | 81 |
83 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 82 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
84 }; | 83 }; |
85 | 84 |
86 #endif // CHROME_RENDERER_GPU_CHANNEL_HOST_H_ | 85 #endif // CHROME_RENDERER_GPU_CHANNEL_HOST_H_ |
OLD | NEW |