| Index: content/ppapi_plugin/ppapi_thread.cc
|
| diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc
|
| index c228bf633e2063793cc83208295efea654f4c842..cfc28a39cc7832f21aba6c30278835b93e3a8a41 100644
|
| --- a/content/ppapi_plugin/ppapi_thread.cc
|
| +++ b/content/ppapi_plugin/ppapi_thread.cc
|
| @@ -20,6 +20,7 @@
|
| #include "content/common/child_process_messages.h"
|
| #include "content/common/sandbox_util.h"
|
| #include "content/ppapi_plugin/broker_process_dispatcher.h"
|
| +#include "content/ppapi_plugin/browser_font_resource_trusted.h"
|
| #include "content/ppapi_plugin/plugin_process_dispatcher.h"
|
| #include "content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h"
|
| #include "content/public/common/content_client.h"
|
| @@ -210,6 +211,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();
|
| +}
|
| +
|
| uint32 PpapiThread::Register(ppapi::proxy::PluginDispatcher* plugin_dispatcher) {
|
| if (!plugin_dispatcher ||
|
| plugin_dispatchers_.size() >= std::numeric_limits<uint32>::max()) {
|
|
|