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