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