Chromium Code Reviews| Index: content/ppapi_plugin/ppapi_thread.cc |
| diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc |
| index 43e739cf312174d540c63d4a4543701a72bd1287..8f7e8a197a00ce7233da2e01db91032bb618ba0e 100644 |
| --- a/content/ppapi_plugin/ppapi_thread.cc |
| +++ b/content/ppapi_plugin/ppapi_thread.cc |
| @@ -15,6 +15,7 @@ |
| #include "base/strings/utf_string_conversions.h" |
| #include "base/threading/platform_thread.h" |
| #include "base/time/time.h" |
| +#include "content/child/browser_font_resource_trusted.h" |
| #include "content/child/child_process.h" |
| #include "content/common/child_process_messages.h" |
| #include "content/common/sandbox_util.h" |
| @@ -209,6 +210,17 @@ void PpapiThread::SetActiveURL(const std::string& url) { |
| GetContentClient()->SetActiveURL(GURL(url)); |
| } |
| +PP_Resource PpapiThread::CreateBrowserFont( |
| + ppapi::proxy::Connection connection, |
| + PP_Instance instance, |
| + const PP_BrowserFont_Trusted_Description& desc, |
| + const ppapi::Preferences& prefs) { |
| + if (!BrowserFontResource_Trusted::IsPPFontDescriptionValid(desc)) |
| + return 0; |
| + return (new BrowserFontResource_Trusted(connection, instance, desc, prefs)) |
| + ->GetReference(); |
|
jam
2013/07/25 17:20:24
nit: we usually don't start a line with "->"
scottmg
2013/07/25 17:39:49
Done?
Previous version was clang-format output, b
scottmg
2013/07/25 19:25:58
(b/8071453 if you care to see how they feel)
|
| +} |
| + |
| uint32 PpapiThread::Register(ppapi::proxy::PluginDispatcher* plugin_dispatcher) { |
| if (!plugin_dispatcher || |
| plugin_dispatchers_.size() >= std::numeric_limits<uint32>::max()) { |