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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 | 79 |
80 PP_Resource PepperInProcessResourceCreation::CreateGraphics2D( | 80 PP_Resource PepperInProcessResourceCreation::CreateGraphics2D( |
81 PP_Instance instance, | 81 PP_Instance instance, |
82 const PP_Size& size, | 82 const PP_Size& size, |
83 PP_Bool is_always_opaque) { | 83 PP_Bool is_always_opaque) { |
84 return (new ppapi::proxy::Graphics2DResource( | 84 return (new ppapi::proxy::Graphics2DResource( |
85 host_impl_->in_process_router()->GetPluginConnection(), | 85 host_impl_->in_process_router()->GetPluginConnection(), |
86 instance, size, is_always_opaque))->GetReference(); | 86 instance, size, is_always_opaque))->GetReference(); |
87 } | 87 } |
88 | 88 |
89 PP_Resource PepperInProcessResourceCreation::CreateHostResolverPrivate( | |
90 PP_Instance instance) { | |
yzshen1
2013/01/24 18:45:03
nit: This file is for those resources that we actu
ygorshenin1
2013/02/05 12:45:31
Done.
| |
91 NOTIMPLEMENTED(); | |
92 return 0; | |
93 } | |
94 | |
89 PP_Resource PepperInProcessResourceCreation::CreatePrinting( | 95 PP_Resource PepperInProcessResourceCreation::CreatePrinting( |
90 PP_Instance instance) { | 96 PP_Instance instance) { |
91 return (new ppapi::proxy::PrintingResource( | 97 return (new ppapi::proxy::PrintingResource( |
92 host_impl_->in_process_router()->GetPluginConnection(), | 98 host_impl_->in_process_router()->GetPluginConnection(), |
93 instance))->GetReference(); | 99 instance))->GetReference(); |
94 } | 100 } |
95 | 101 |
96 PP_Resource PepperInProcessResourceCreation::CreateUDPSocketPrivate( | 102 PP_Resource PepperInProcessResourceCreation::CreateUDPSocketPrivate( |
97 PP_Instance instance) { | 103 PP_Instance instance) { |
98 NOTIMPLEMENTED(); | 104 NOTIMPLEMENTED(); |
(...skipping 18 matching lines...) Expand all Loading... | |
117 } | 123 } |
118 | 124 |
119 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( | 125 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( |
120 PP_Instance instance) { | 126 PP_Instance instance) { |
121 return (new ppapi::proxy::WebSocketResource( | 127 return (new ppapi::proxy::WebSocketResource( |
122 host_impl_->in_process_router()->GetPluginConnection(), | 128 host_impl_->in_process_router()->GetPluginConnection(), |
123 instance))->GetReference(); | 129 instance))->GetReference(); |
124 } | 130 } |
125 | 131 |
126 } // namespace content | 132 } // namespace content |
OLD | NEW |