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_delegate_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1395 t, &result)); | 1395 t, &result)); |
1396 return result; | 1396 return result; |
1397 } | 1397 } |
1398 | 1398 |
1399 std::string PepperPluginDelegateImpl::GetDeviceID() { | 1399 std::string PepperPluginDelegateImpl::GetDeviceID() { |
1400 std::string result; | 1400 std::string result; |
1401 render_view_->Send(new PepperMsg_GetDeviceID(&result)); | 1401 render_view_->Send(new PepperMsg_GetDeviceID(&result)); |
1402 return result; | 1402 return result; |
1403 } | 1403 } |
1404 | 1404 |
| 1405 PP_FlashLSORestrictions PepperPluginDelegateImpl::GetLocalDataRestrictions( |
| 1406 const GURL& document_url, |
| 1407 const GURL& plugin_url) { |
| 1408 PP_FlashLSORestrictions restrictions = PP_FLASHLSORESTRICTIONS_NONE; |
| 1409 render_view_->Send( |
| 1410 new PepperMsg_GetLocalDataRestrictions(document_url, plugin_url, |
| 1411 &restrictions)); |
| 1412 return restrictions; |
| 1413 } |
| 1414 |
1405 base::SharedMemory* PepperPluginDelegateImpl::CreateAnonymousSharedMemory( | 1415 base::SharedMemory* PepperPluginDelegateImpl::CreateAnonymousSharedMemory( |
1406 uint32_t size) { | 1416 uint32_t size) { |
1407 if (size == 0) | 1417 if (size == 0) |
1408 return NULL; | 1418 return NULL; |
1409 base::SharedMemoryHandle handle; | 1419 base::SharedMemoryHandle handle; |
1410 if (!render_view_->Send( | 1420 if (!render_view_->Send( |
1411 new ChildProcessHostMsg_SyncAllocateSharedMemory(size, &handle))) { | 1421 new ChildProcessHostMsg_SyncAllocateSharedMemory(size, &handle))) { |
1412 DLOG(WARNING) << "Browser allocation request message failed"; | 1422 DLOG(WARNING) << "Browser allocation request message failed"; |
1413 return NULL; | 1423 return NULL; |
1414 } | 1424 } |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1753 else | 1763 else |
1754 return render_view_->mouse_lock_dispatcher(); | 1764 return render_view_->mouse_lock_dispatcher(); |
1755 } | 1765 } |
1756 | 1766 |
1757 webkit_glue::ClipboardClient* | 1767 webkit_glue::ClipboardClient* |
1758 PepperPluginDelegateImpl::CreateClipboardClient() const { | 1768 PepperPluginDelegateImpl::CreateClipboardClient() const { |
1759 return new RendererClipboardClient; | 1769 return new RendererClipboardClient; |
1760 } | 1770 } |
1761 | 1771 |
1762 } // namespace content | 1772 } // namespace content |
OLD | NEW |