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

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

Issue 11413200: Refactored PPB_Flash GetSettings to the new pepper resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 render_view_->routing_id(), url, referrer)); 1364 render_view_->routing_id(), url, referrer));
1365 } 1365 }
1366 1366
1367 double PepperPluginDelegateImpl::GetLocalTimeZoneOffset(base::Time t) { 1367 double PepperPluginDelegateImpl::GetLocalTimeZoneOffset(base::Time t) {
1368 double result = 0.0; 1368 double result = 0.0;
1369 render_view_->Send(new PepperMsg_GetLocalTimeZoneOffset( 1369 render_view_->Send(new PepperMsg_GetLocalTimeZoneOffset(
1370 t, &result)); 1370 t, &result));
1371 return result; 1371 return result;
1372 } 1372 }
1373 1373
1374 PP_FlashLSORestrictions PepperPluginDelegateImpl::GetLocalDataRestrictions(
1375 const GURL& document_url,
1376 const GURL& plugin_url) {
1377 PP_FlashLSORestrictions restrictions = PP_FLASHLSORESTRICTIONS_NONE;
1378 render_view_->Send(
1379 new PepperMsg_GetLocalDataRestrictions(document_url, plugin_url,
1380 &restrictions));
1381 return restrictions;
1382 }
1383
1384 base::SharedMemory* PepperPluginDelegateImpl::CreateAnonymousSharedMemory( 1374 base::SharedMemory* PepperPluginDelegateImpl::CreateAnonymousSharedMemory(
1385 uint32_t size) { 1375 uint32_t size) {
1386 if (size == 0) 1376 if (size == 0)
1387 return NULL; 1377 return NULL;
1388 base::SharedMemoryHandle handle; 1378 base::SharedMemoryHandle handle;
1389 if (!render_view_->Send( 1379 if (!render_view_->Send(
1390 new ChildProcessHostMsg_SyncAllocateSharedMemory(size, &handle))) { 1380 new ChildProcessHostMsg_SyncAllocateSharedMemory(size, &handle))) {
1391 DLOG(WARNING) << "Browser allocation request message failed"; 1381 DLOG(WARNING) << "Browser allocation request message failed";
1392 return NULL; 1382 return NULL;
1393 } 1383 }
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1747 RenderWidgetFullscreenPepper* container = 1737 RenderWidgetFullscreenPepper* container =
1748 static_cast<RenderWidgetFullscreenPepper*>( 1738 static_cast<RenderWidgetFullscreenPepper*>(
1749 instance->fullscreen_container()); 1739 instance->fullscreen_container());
1750 return container->mouse_lock_dispatcher(); 1740 return container->mouse_lock_dispatcher();
1751 } else { 1741 } else {
1752 return render_view_->mouse_lock_dispatcher(); 1742 return render_view_->mouse_lock_dispatcher();
1753 } 1743 }
1754 } 1744 }
1755 1745
1756 } // namespace content 1746 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698