| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
| 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 GpuWatchdog* watchdog, | 64 GpuWatchdog* watchdog, |
| 65 base::MessageLoopProxy* io_message_loop, | 65 base::MessageLoopProxy* io_message_loop, |
| 66 base::WaitableEvent* shutdown_event, | 66 base::WaitableEvent* shutdown_event, |
| 67 IPC::SyncChannel* channel); | 67 IPC::SyncChannel* channel); |
| 68 virtual ~GpuChannelManager(); | 68 virtual ~GpuChannelManager(); |
| 69 | 69 |
| 70 // Remove the channel for a particular renderer. | 70 // Remove the channel for a particular renderer. |
| 71 void RemoveChannel(int client_id); | 71 void RemoveChannel(int client_id); |
| 72 | 72 |
| 73 // Listener overrides. | 73 // Listener overrides. |
| 74 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 74 virtual bool OnMessageReceived(const IPC::Message& msg) override; |
| 75 | 75 |
| 76 // Sender overrides. | 76 // Sender overrides. |
| 77 virtual bool Send(IPC::Message* msg) OVERRIDE; | 77 virtual bool Send(IPC::Message* msg) override; |
| 78 | 78 |
| 79 bool HandleMessagesScheduled(); | 79 bool HandleMessagesScheduled(); |
| 80 uint64 MessagesProcessed(); | 80 uint64 MessagesProcessed(); |
| 81 | 81 |
| 82 void LoseAllContexts(); | 82 void LoseAllContexts(); |
| 83 | 83 |
| 84 int GenerateRouteID(); | 84 int GenerateRouteID(); |
| 85 void AddRoute(int32 routing_id, IPC::Listener* listener); | 85 void AddRoute(int32 routing_id, IPC::Listener* listener); |
| 86 void RemoveRoute(int32 routing_id); | 86 void RemoveRoute(int32 routing_id); |
| 87 | 87 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 // that any WeakPtrs to Controller are invalidated before its members | 155 // that any WeakPtrs to Controller are invalidated before its members |
| 156 // variable's destructors are executed, rendering them invalid. | 156 // variable's destructors are executed, rendering them invalid. |
| 157 base::WeakPtrFactory<GpuChannelManager> weak_factory_; | 157 base::WeakPtrFactory<GpuChannelManager> weak_factory_; |
| 158 | 158 |
| 159 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); | 159 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 } // namespace content | 162 } // namespace content |
| 163 | 163 |
| 164 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 164 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
| OLD | NEW |