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

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
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.h ('k') | ppapi/proxy/flash_resource.h » ('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 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 } 1357 }
1358 1358
1359 void PepperPluginDelegateImpl::SaveURLAs(const GURL& url) { 1359 void PepperPluginDelegateImpl::SaveURLAs(const GURL& url) {
1360 WebFrame* frame = render_view_->webview()->mainFrame(); 1360 WebFrame* frame = render_view_->webview()->mainFrame();
1361 Referrer referrer(frame->document().url(), 1361 Referrer referrer(frame->document().url(),
1362 frame->document().referrerPolicy()); 1362 frame->document().referrerPolicy());
1363 render_view_->Send(new ViewHostMsg_SaveURLAs( 1363 render_view_->Send(new ViewHostMsg_SaveURLAs(
1364 render_view_->routing_id(), url, referrer)); 1364 render_view_->routing_id(), url, referrer));
1365 } 1365 }
1366 1366
1367 PP_FlashLSORestrictions PepperPluginDelegateImpl::GetLocalDataRestrictions(
1368 const GURL& document_url,
1369 const GURL& plugin_url) {
1370 PP_FlashLSORestrictions restrictions = PP_FLASHLSORESTRICTIONS_NONE;
1371 render_view_->Send(
1372 new PepperMsg_GetLocalDataRestrictions(document_url, plugin_url,
1373 &restrictions));
1374 return restrictions;
1375 }
1376
1377 base::SharedMemory* PepperPluginDelegateImpl::CreateAnonymousSharedMemory( 1367 base::SharedMemory* PepperPluginDelegateImpl::CreateAnonymousSharedMemory(
1378 uint32_t size) { 1368 uint32_t size) {
1379 return RenderThread::Get()->HostAllocateSharedMemoryBuffer(size).release(); 1369 return RenderThread::Get()->HostAllocateSharedMemoryBuffer(size).release();
1380 } 1370 }
1381 1371
1382 ppapi::Preferences PepperPluginDelegateImpl::GetPreferences() { 1372 ppapi::Preferences PepperPluginDelegateImpl::GetPreferences() {
1383 return ppapi::Preferences(render_view_->webkit_preferences()); 1373 return ppapi::Preferences(render_view_->webkit_preferences());
1384 } 1374 }
1385 1375
1386 bool PepperPluginDelegateImpl::LockMouse( 1376 bool PepperPluginDelegateImpl::LockMouse(
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 RenderWidgetFullscreenPepper* container = 1718 RenderWidgetFullscreenPepper* container =
1729 static_cast<RenderWidgetFullscreenPepper*>( 1719 static_cast<RenderWidgetFullscreenPepper*>(
1730 instance->fullscreen_container()); 1720 instance->fullscreen_container());
1731 return container->mouse_lock_dispatcher(); 1721 return container->mouse_lock_dispatcher();
1732 } else { 1722 } else {
1733 return render_view_->mouse_lock_dispatcher(); 1723 return render_view_->mouse_lock_dispatcher();
1734 } 1724 }
1735 } 1725 }
1736 1726
1737 } // namespace content 1727 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.h ('k') | ppapi/proxy/flash_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698