| 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_plugin_instance_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
| (...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1358 int32_t PepperPluginInstanceImpl::RegisterMessageHandler( | 1358 int32_t PepperPluginInstanceImpl::RegisterMessageHandler( |
| 1359 PP_Instance instance, | 1359 PP_Instance instance, |
| 1360 void* user_data, | 1360 void* user_data, |
| 1361 const PPP_MessageHandler_0_2* handler, | 1361 const PPP_MessageHandler_0_2* handler, |
| 1362 PP_Resource message_loop) { | 1362 PP_Resource message_loop) { |
| 1363 // Not supported in-process. | 1363 // Not supported in-process. |
| 1364 NOTIMPLEMENTED(); | 1364 NOTIMPLEMENTED(); |
| 1365 return PP_ERROR_FAILED; | 1365 return PP_ERROR_FAILED; |
| 1366 } | 1366 } |
| 1367 | 1367 |
| 1368 int32_t PepperPluginInstanceImpl::RegisterMessageHandler_1_1_Deprecated( | |
| 1369 PP_Instance instance, | |
| 1370 void* user_data, | |
| 1371 const PPP_MessageHandler_0_1_Deprecated* handler, | |
| 1372 PP_Resource message_loop) { | |
| 1373 // Not supported in-process. | |
| 1374 NOTIMPLEMENTED(); | |
| 1375 return PP_ERROR_FAILED; | |
| 1376 } | |
| 1377 | |
| 1378 void PepperPluginInstanceImpl::UnregisterMessageHandler(PP_Instance instance) { | 1368 void PepperPluginInstanceImpl::UnregisterMessageHandler(PP_Instance instance) { |
| 1379 // Not supported in-process. | 1369 // Not supported in-process. |
| 1380 NOTIMPLEMENTED(); | 1370 NOTIMPLEMENTED(); |
| 1381 } | 1371 } |
| 1382 | 1372 |
| 1383 base::string16 PepperPluginInstanceImpl::GetSelectedText(bool html) { | 1373 base::string16 PepperPluginInstanceImpl::GetSelectedText(bool html) { |
| 1384 return selected_text_; | 1374 return selected_text_; |
| 1385 } | 1375 } |
| 1386 | 1376 |
| 1387 base::string16 PepperPluginInstanceImpl::GetLinkAtPosition( | 1377 base::string16 PepperPluginInstanceImpl::GetLinkAtPosition( |
| (...skipping 1934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3322 | 3312 |
| 3323 void PepperPluginInstanceImpl::RecordFlashJavaScriptUse() { | 3313 void PepperPluginInstanceImpl::RecordFlashJavaScriptUse() { |
| 3324 if (initialized_ && !javascript_used_ && is_flash_plugin_) { | 3314 if (initialized_ && !javascript_used_ && is_flash_plugin_) { |
| 3325 javascript_used_ = true; | 3315 javascript_used_ = true; |
| 3326 RenderThread::Get()->RecordAction( | 3316 RenderThread::Get()->RecordAction( |
| 3327 base::UserMetricsAction("Flash.JavaScriptUsed")); | 3317 base::UserMetricsAction("Flash.JavaScriptUsed")); |
| 3328 } | 3318 } |
| 3329 } | 3319 } |
| 3330 | 3320 |
| 3331 } // namespace content | 3321 } // namespace content |
| OLD | NEW |