| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/proxy/ppb_font_proxy.h" | 5 #include "ppapi/proxy/ppb_font_proxy.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "ppapi/c/dev/ppb_font_dev.h" | 9 #include "ppapi/c/dev/ppb_font_dev.h" |
| 10 #include "ppapi/proxy/plugin_dispatcher.h" | 10 #include "ppapi/proxy/plugin_dispatcher.h" |
| 11 #include "ppapi/proxy/ppapi_messages.h" | 11 #include "ppapi/proxy/ppapi_messages.h" |
| 12 #include "ppapi/proxy/ppb_image_data_proxy.h" | 12 #include "ppapi/proxy/ppb_image_data_proxy.h" |
| 13 #include "ppapi/proxy/serialized_var.h" | 13 #include "ppapi/proxy/serialized_var.h" |
| 14 #include "ppapi/shared_impl/ppapi_preferences.h" | 14 #include "ppapi/shared_impl/ppapi_preferences.h" |
| 15 #include "ppapi/shared_impl/resource_object_base.h" | 15 #include "ppapi/shared_impl/resource_object_base.h" |
| 16 #include "ppapi/shared_impl/var.h" | 16 #include "ppapi/shared_impl/var.h" |
| 17 #include "ppapi/thunk/enter.h" | 17 #include "ppapi/thunk/enter.h" |
| 18 #include "ppapi/thunk/ppb_image_data_api.h" | 18 #include "ppapi/thunk/ppb_image_data_api.h" |
| 19 #include "ppapi/thunk/thunk.h" | 19 #include "ppapi/thunk/thunk.h" |
| 20 | 20 |
| 21 using ppapi::HostResource; |
| 21 using ppapi::StringVar; | 22 using ppapi::StringVar; |
| 22 using ppapi::thunk::EnterResourceNoLock; | 23 using ppapi::thunk::EnterResourceNoLock; |
| 23 using ppapi::thunk::PPB_ImageData_API; | 24 using ppapi::thunk::PPB_ImageData_API; |
| 24 using ppapi::WebKitForwarding; | 25 using ppapi::WebKitForwarding; |
| 25 | 26 |
| 26 namespace pp { | 27 namespace pp { |
| 27 namespace proxy { | 28 namespace proxy { |
| 28 | 29 |
| 29 namespace { | 30 namespace { |
| 30 | 31 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 return result; | 215 return result; |
| 215 } | 216 } |
| 216 | 217 |
| 217 void Font::RunOnWebKitThread(const base::Closure& task) { | 218 void Font::RunOnWebKitThread(const base::Closure& task) { |
| 218 GetDispatcher()->PostToWebKitThread(FROM_HERE, task); | 219 GetDispatcher()->PostToWebKitThread(FROM_HERE, task); |
| 219 webkit_event_.Wait(); | 220 webkit_event_.Wait(); |
| 220 } | 221 } |
| 221 | 222 |
| 222 } // namespace proxy | 223 } // namespace proxy |
| 223 } // namespace pp | 224 } // namespace pp |
| OLD | NEW |