| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 PP_Resource PepperInProcessResourceCreation::CreatePrinting( | 93 PP_Resource PepperInProcessResourceCreation::CreatePrinting( |
| 94 PP_Instance instance) { | 94 PP_Instance instance) { |
| 95 return (new ppapi::proxy::PrintingResource( | 95 return (new ppapi::proxy::PrintingResource( |
| 96 host_impl_->in_process_router()->GetPluginConnection(), | 96 host_impl_->in_process_router()->GetPluginConnection(), |
| 97 instance))->GetReference(); | 97 instance))->GetReference(); |
| 98 } | 98 } |
| 99 | 99 |
| 100 PP_Resource PepperInProcessResourceCreation::CreateTrueTypeFont( | 100 PP_Resource PepperInProcessResourceCreation::CreateTrueTypeFont( |
| 101 PP_Instance instance, | 101 PP_Instance instance, |
| 102 const PP_TrueTypeFontDesc_Dev& desc) { | 102 const PP_TrueTypeFontDesc_Dev* desc) { |
| 103 NOTIMPLEMENTED(); | 103 NOTIMPLEMENTED(); |
| 104 return 0; | 104 return 0; |
| 105 } | 105 } |
| 106 | 106 |
| 107 PP_Resource PepperInProcessResourceCreation::CreateURLRequestInfo( | 107 PP_Resource PepperInProcessResourceCreation::CreateURLRequestInfo( |
| 108 PP_Instance instance) { | 108 PP_Instance instance) { |
| 109 return (new ppapi::proxy::URLRequestInfoResource( | 109 return (new ppapi::proxy::URLRequestInfoResource( |
| 110 host_impl_->in_process_router()->GetPluginConnection(), | 110 host_impl_->in_process_router()->GetPluginConnection(), |
| 111 instance, ::ppapi::URLRequestInfoData()))->GetReference(); | 111 instance, ::ppapi::URLRequestInfoData()))->GetReference(); |
| 112 } | 112 } |
| 113 | 113 |
| 114 PP_Resource PepperInProcessResourceCreation::CreateURLResponseInfo( | 114 PP_Resource PepperInProcessResourceCreation::CreateURLResponseInfo( |
| 115 PP_Instance instance, | 115 PP_Instance instance, |
| 116 const ::ppapi::URLResponseInfoData& data, | 116 const ::ppapi::URLResponseInfoData& data, |
| 117 PP_Resource file_ref_resource) { | 117 PP_Resource file_ref_resource) { |
| 118 return (new ppapi::proxy::URLResponseInfoResource( | 118 return (new ppapi::proxy::URLResponseInfoResource( |
| 119 host_impl_->in_process_router()->GetPluginConnection(), | 119 host_impl_->in_process_router()->GetPluginConnection(), |
| 120 instance, data, file_ref_resource))->GetReference(); | 120 instance, data, file_ref_resource))->GetReference(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( | 123 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( |
| 124 PP_Instance instance) { | 124 PP_Instance instance) { |
| 125 return (new ppapi::proxy::WebSocketResource( | 125 return (new ppapi::proxy::WebSocketResource( |
| 126 host_impl_->in_process_router()->GetPluginConnection(), | 126 host_impl_->in_process_router()->GetPluginConnection(), |
| 127 instance))->GetReference(); | 127 instance))->GetReference(); |
| 128 } | 128 } |
| 129 | 129 |
| 130 } // namespace content | 130 } // namespace content |
| OLD | NEW |