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

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: . 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
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 void PepperPluginDelegateImpl::GetLocalDataRestrictions(const GURL& url,
1406 bool* block_access,
1407 bool* in_memory) {
1408 render_view_->Send(
1409 new PepperMsg_GetLocalDataRestrictions(
1410 render_view_->GetRoutingID(), url, block_access, in_memory));
1411 }
1412
1405 base::SharedMemory* PepperPluginDelegateImpl::CreateAnonymousSharedMemory( 1413 base::SharedMemory* PepperPluginDelegateImpl::CreateAnonymousSharedMemory(
1406 uint32_t size) { 1414 uint32_t size) {
1407 if (size == 0) 1415 if (size == 0)
1408 return NULL; 1416 return NULL;
1409 base::SharedMemoryHandle handle; 1417 base::SharedMemoryHandle handle;
1410 if (!render_view_->Send( 1418 if (!render_view_->Send(
1411 new ChildProcessHostMsg_SyncAllocateSharedMemory(size, &handle))) { 1419 new ChildProcessHostMsg_SyncAllocateSharedMemory(size, &handle))) {
1412 DLOG(WARNING) << "Browser allocation request message failed"; 1420 DLOG(WARNING) << "Browser allocation request message failed";
1413 return NULL; 1421 return NULL;
1414 } 1422 }
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1753 else 1761 else
1754 return render_view_->mouse_lock_dispatcher(); 1762 return render_view_->mouse_lock_dispatcher();
1755 } 1763 }
1756 1764
1757 webkit_glue::ClipboardClient* 1765 webkit_glue::ClipboardClient*
1758 PepperPluginDelegateImpl::CreateClipboardClient() const { 1766 PepperPluginDelegateImpl::CreateClipboardClient() const {
1759 return new RendererClipboardClient; 1767 return new RendererClipboardClient;
1760 } 1768 }
1761 1769
1762 } // namespace content 1770 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698