| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "base/process_util.h" | 6 #include "base/process_util.h" |
| 7 #include "chrome/common/command_buffer_messages.h" | 7 #include "chrome/common/command_buffer_messages.h" |
| 8 #include "chrome/common/plugin_messages.h" | 8 #include "chrome/common/plugin_messages.h" |
| 9 #include "chrome/renderer/command_buffer_proxy.h" | 9 #include "chrome/renderer/command_buffer_proxy.h" |
| 10 #include "chrome/renderer/plugin_channel_host.h" | 10 #include "chrome/renderer/plugin_channel_host.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } | 100 } |
| 101 | 101 |
| 102 int32 CommandBufferProxy::GetPutOffset() { | 102 int32 CommandBufferProxy::GetPutOffset() { |
| 103 int put_offset; | 103 int put_offset; |
| 104 if (Send(new CommandBufferMsg_GetPutOffset(route_id_, &put_offset))) | 104 if (Send(new CommandBufferMsg_GetPutOffset(route_id_, &put_offset))) |
| 105 return put_offset; | 105 return put_offset; |
| 106 | 106 |
| 107 return -1; | 107 return -1; |
| 108 } | 108 } |
| 109 | 109 |
| 110 void CommandBufferProxy::SetPutOffsetChangeCallback(Callback0::Type* callback) { | |
| 111 // Not implemented in proxy. | |
| 112 NOTREACHED(); | |
| 113 } | |
| 114 | |
| 115 int32 CommandBufferProxy::CreateTransferBuffer(size_t size) { | 110 int32 CommandBufferProxy::CreateTransferBuffer(size_t size) { |
| 116 int32 id; | 111 int32 id; |
| 117 if (Send(new CommandBufferMsg_CreateTransferBuffer(route_id_, size, &id))) | 112 if (Send(new CommandBufferMsg_CreateTransferBuffer(route_id_, size, &id))) |
| 118 return id; | 113 return id; |
| 119 | 114 |
| 120 return -1; | 115 return -1; |
| 121 } | 116 } |
| 122 | 117 |
| 123 void CommandBufferProxy::DestroyTransferBuffer(int32 id) { | 118 void CommandBufferProxy::DestroyTransferBuffer(int32 id) { |
| 124 // Remove the transfer buffer from the client side4 cache. | 119 // Remove the transfer buffer from the client side4 cache. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 if (Send(new CommandBufferMsg_GetErrorStatus(route_id_, &status))) | 207 if (Send(new CommandBufferMsg_GetErrorStatus(route_id_, &status))) |
| 213 return status; | 208 return status; |
| 214 | 209 |
| 215 return true; | 210 return true; |
| 216 } | 211 } |
| 217 | 212 |
| 218 void CommandBufferProxy::RaiseErrorStatus() { | 213 void CommandBufferProxy::RaiseErrorStatus() { |
| 219 // Not implemented in proxy. | 214 // Not implemented in proxy. |
| 220 NOTREACHED(); | 215 NOTREACHED(); |
| 221 } | 216 } |
| OLD | NEW |