Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: content/renderer/pepper/pepper_plugin_delegate_impl.cc

Issue 10831045: Add PP_FlashLSORestrictions to the list of settings supported by the Flash_GetSetting Pepper API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: brett Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.h ('k') | ppapi/api/private/ppb_flash.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.h ('k') | ppapi/api/private/ppb_flash.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698