| 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 #include "content/renderer/pepper/pepper_in_process_resource_creation.h" | 5 #include "content/renderer/pepper/pepper_in_process_resource_creation.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 PP_Resource PepperInProcessResourceCreation::CreateFileSystem( | 85 PP_Resource PepperInProcessResourceCreation::CreateFileSystem( |
| 86 PP_Instance instance, | 86 PP_Instance instance, |
| 87 PP_FileSystemType type) { | 87 PP_FileSystemType type) { |
| 88 return (new ppapi::proxy::FileSystemResource( | 88 return (new ppapi::proxy::FileSystemResource( |
| 89 host_impl_->in_process_router()->GetPluginConnection(), | 89 host_impl_->in_process_router()->GetPluginConnection(), |
| 90 instance, type))->GetReference(); | 90 instance, type))->GetReference(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 PP_Resource PepperInProcessResourceCreation::CreateGraphics2D( | 93 PP_Resource PepperInProcessResourceCreation::CreateGraphics2D( |
| 94 PP_Instance instance, | 94 PP_Instance instance, |
| 95 const PP_Size& size, | 95 const PP_Size* size, |
| 96 PP_Bool is_always_opaque) { | 96 PP_Bool is_always_opaque) { |
| 97 return (new ppapi::proxy::Graphics2DResource( | 97 return (new ppapi::proxy::Graphics2DResource( |
| 98 host_impl_->in_process_router()->GetPluginConnection(), | 98 host_impl_->in_process_router()->GetPluginConnection(), |
| 99 instance, size, is_always_opaque))->GetReference(); | 99 instance, *size, is_always_opaque))->GetReference(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 PP_Resource PepperInProcessResourceCreation::CreatePrinting( | 102 PP_Resource PepperInProcessResourceCreation::CreatePrinting( |
| 103 PP_Instance instance) { | 103 PP_Instance instance) { |
| 104 return (new ppapi::proxy::PrintingResource( | 104 return (new ppapi::proxy::PrintingResource( |
| 105 host_impl_->in_process_router()->GetPluginConnection(), | 105 host_impl_->in_process_router()->GetPluginConnection(), |
| 106 instance))->GetReference(); | 106 instance))->GetReference(); |
| 107 } | 107 } |
| 108 | 108 |
| 109 PP_Resource PepperInProcessResourceCreation::CreateTrueTypeFont( | 109 PP_Resource PepperInProcessResourceCreation::CreateTrueTypeFont( |
| (...skipping 20 matching lines...) Expand all Loading... |
| 130 } | 130 } |
| 131 | 131 |
| 132 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( | 132 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( |
| 133 PP_Instance instance) { | 133 PP_Instance instance) { |
| 134 return (new ppapi::proxy::WebSocketResource( | 134 return (new ppapi::proxy::WebSocketResource( |
| 135 host_impl_->in_process_router()->GetPluginConnection(), | 135 host_impl_->in_process_router()->GetPluginConnection(), |
| 136 instance))->GetReference(); | 136 instance))->GetReference(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 } // namespace content | 139 } // namespace content |
| OLD | NEW |