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

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

Issue 10534045: Add CreateTemporaryFile to PPB_Flash_File_ModuleLocal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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/c/private/ppb_flash_file.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 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 base::PlatformFileError PepperPluginDelegateImpl::GetDirContents( 971 base::PlatformFileError PepperPluginDelegateImpl::GetDirContents(
972 const ppapi::PepperFilePath& path, 972 const ppapi::PepperFilePath& path,
973 ppapi::DirContents* contents) { 973 ppapi::DirContents* contents) {
974 base::PlatformFileError error; 974 base::PlatformFileError error;
975 IPC::Message* msg = new PepperFileMsg_GetDirContents(path, contents, &error); 975 IPC::Message* msg = new PepperFileMsg_GetDirContents(path, contents, &error);
976 if (!render_view_->Send(msg)) 976 if (!render_view_->Send(msg))
977 return base::PLATFORM_FILE_ERROR_FAILED; 977 return base::PLATFORM_FILE_ERROR_FAILED;
978 return error; 978 return error;
979 } 979 }
980 980
981 base::PlatformFileError PepperPluginDelegateImpl::CreateTemporaryFile(
982 base::PlatformFile* file) {
983 IPC::PlatformFileForTransit transit_file;
984 base::PlatformFileError error;
985 IPC::Message* msg = new PepperFileMsg_CreateTemporaryFile(&error,
986 &transit_file);
987 if (!render_view_->Send(msg)) {
988 *file = base::kInvalidPlatformFileValue;
989 return base::PLATFORM_FILE_ERROR_FAILED;
990 }
991 *file = IPC::PlatformFileForTransitToPlatformFile(transit_file);
992 return error;
993 }
994
981 void PepperPluginDelegateImpl::SyncGetFileSystemPlatformPath( 995 void PepperPluginDelegateImpl::SyncGetFileSystemPlatformPath(
982 const GURL& url, FilePath* platform_path) { 996 const GURL& url, FilePath* platform_path) {
983 RenderThreadImpl::current()->Send(new FileSystemHostMsg_SyncGetPlatformPath( 997 RenderThreadImpl::current()->Send(new FileSystemHostMsg_SyncGetPlatformPath(
984 url, platform_path)); 998 url, platform_path));
985 } 999 }
986 1000
987 scoped_refptr<base::MessageLoopProxy> 1001 scoped_refptr<base::MessageLoopProxy>
988 PepperPluginDelegateImpl::GetFileThreadMessageLoopProxy() { 1002 PepperPluginDelegateImpl::GetFileThreadMessageLoopProxy() {
989 return RenderThreadImpl::current()->GetFileThreadMessageLoopProxy(); 1003 return RenderThreadImpl::current()->GetFileThreadMessageLoopProxy();
990 } 1004 }
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
1691 else 1705 else
1692 return render_view_->mouse_lock_dispatcher(); 1706 return render_view_->mouse_lock_dispatcher();
1693 } 1707 }
1694 1708
1695 webkit_glue::ClipboardClient* 1709 webkit_glue::ClipboardClient*
1696 PepperPluginDelegateImpl::CreateClipboardClient() const { 1710 PepperPluginDelegateImpl::CreateClipboardClient() const {
1697 return new RendererClipboardClient; 1711 return new RendererClipboardClient;
1698 } 1712 }
1699 1713
1700 } // namespace content 1714 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.h ('k') | ppapi/c/private/ppb_flash_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698