| 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 "ppapi/proxy/plugin_globals.h" | 5 #include "ppapi/proxy/plugin_globals.h" |
| 6 | 6 |
| 7 #include "base/task_runner.h" | 7 #include "base/task_runner.h" |
| 8 #include "base/threading/thread.h" | 8 #include "base/threading/thread.h" |
| 9 #include "ipc/ipc_message.h" | 9 #include "ipc/ipc_message.h" |
| 10 #include "ipc/ipc_sender.h" | 10 #include "ipc/ipc_sender.h" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 } | 174 } |
| 175 | 175 |
| 176 std::string PluginGlobals::GetUILanguage() { | 176 std::string PluginGlobals::GetUILanguage() { |
| 177 return plugin_proxy_delegate_->GetUILanguage(); | 177 return plugin_proxy_delegate_->GetUILanguage(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 void PluginGlobals::SetActiveURL(const std::string& url) { | 180 void PluginGlobals::SetActiveURL(const std::string& url) { |
| 181 plugin_proxy_delegate_->SetActiveURL(url); | 181 plugin_proxy_delegate_->SetActiveURL(url); |
| 182 } | 182 } |
| 183 | 183 |
| 184 PP_Resource PluginGlobals::CreateBrowserFont( |
| 185 Connection connection, |
| 186 PP_Instance instance, |
| 187 const PP_BrowserFont_Trusted_Description& desc, |
| 188 const ppapi::Preferences& prefs) { |
| 189 return plugin_proxy_delegate_->CreateBrowserFont( |
| 190 connection, instance, desc, prefs); |
| 191 } |
| 192 |
| 184 MessageLoopResource* PluginGlobals::loop_for_main_thread() { | 193 MessageLoopResource* PluginGlobals::loop_for_main_thread() { |
| 185 return loop_for_main_thread_.get(); | 194 return loop_for_main_thread_.get(); |
| 186 } | 195 } |
| 187 | 196 |
| 188 bool PluginGlobals::IsPluginGlobals() const { | 197 bool PluginGlobals::IsPluginGlobals() const { |
| 189 return true; | 198 return true; |
| 190 } | 199 } |
| 191 | 200 |
| 192 } // namespace proxy | 201 } // namespace proxy |
| 193 } // namespace ppapi | 202 } // namespace ppapi |
| OLD | NEW |