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

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

Issue 6767010: More filesystem cleanup: convert URL-encoded-as-FilePath to actual URL, where (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_plugin_delegate_impl.h" 5 #include "content/renderer/pepper_plugin_delegate_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 fileapi::FileSystemType type, 680 fileapi::FileSystemType type,
681 long long size, 681 long long size,
682 fileapi::FileSystemCallbackDispatcher* dispatcher) { 682 fileapi::FileSystemCallbackDispatcher* dispatcher) {
683 FileSystemDispatcher* file_system_dispatcher = 683 FileSystemDispatcher* file_system_dispatcher =
684 ChildThread::current()->file_system_dispatcher(); 684 ChildThread::current()->file_system_dispatcher();
685 return file_system_dispatcher->OpenFileSystem( 685 return file_system_dispatcher->OpenFileSystem(
686 url, type, size, true /* create */, dispatcher); 686 url, type, size, true /* create */, dispatcher);
687 } 687 }
688 688
689 bool PepperPluginDelegateImpl::MakeDirectory( 689 bool PepperPluginDelegateImpl::MakeDirectory(
690 const FilePath& path, 690 const GURL& path,
691 bool recursive, 691 bool recursive,
692 fileapi::FileSystemCallbackDispatcher* dispatcher) { 692 fileapi::FileSystemCallbackDispatcher* dispatcher) {
693 FileSystemDispatcher* file_system_dispatcher = 693 FileSystemDispatcher* file_system_dispatcher =
694 ChildThread::current()->file_system_dispatcher(); 694 ChildThread::current()->file_system_dispatcher();
695 return file_system_dispatcher->Create( 695 return file_system_dispatcher->Create(
696 path, false, true, recursive, dispatcher); 696 path, false, true, recursive, dispatcher);
697 } 697 }
698 698
699 bool PepperPluginDelegateImpl::Query( 699 bool PepperPluginDelegateImpl::Query(
700 const FilePath& path, 700 const GURL& path,
701 fileapi::FileSystemCallbackDispatcher* dispatcher) { 701 fileapi::FileSystemCallbackDispatcher* dispatcher) {
702 FileSystemDispatcher* file_system_dispatcher = 702 FileSystemDispatcher* file_system_dispatcher =
703 ChildThread::current()->file_system_dispatcher(); 703 ChildThread::current()->file_system_dispatcher();
704 return file_system_dispatcher->ReadMetadata(path, dispatcher); 704 return file_system_dispatcher->ReadMetadata(path, dispatcher);
705 } 705 }
706 706
707 bool PepperPluginDelegateImpl::Touch( 707 bool PepperPluginDelegateImpl::Touch(
708 const FilePath& path, 708 const GURL& path,
709 const base::Time& last_access_time, 709 const base::Time& last_access_time,
710 const base::Time& last_modified_time, 710 const base::Time& last_modified_time,
711 fileapi::FileSystemCallbackDispatcher* dispatcher) { 711 fileapi::FileSystemCallbackDispatcher* dispatcher) {
712 FileSystemDispatcher* file_system_dispatcher = 712 FileSystemDispatcher* file_system_dispatcher =
713 ChildThread::current()->file_system_dispatcher(); 713 ChildThread::current()->file_system_dispatcher();
714 return file_system_dispatcher->TouchFile(path, last_access_time, 714 return file_system_dispatcher->TouchFile(path, last_access_time,
715 last_modified_time, dispatcher); 715 last_modified_time, dispatcher);
716 } 716 }
717 717
718 bool PepperPluginDelegateImpl::Delete( 718 bool PepperPluginDelegateImpl::Delete(
719 const FilePath& path, 719 const GURL& path,
720 fileapi::FileSystemCallbackDispatcher* dispatcher) { 720 fileapi::FileSystemCallbackDispatcher* dispatcher) {
721 FileSystemDispatcher* file_system_dispatcher = 721 FileSystemDispatcher* file_system_dispatcher =
722 ChildThread::current()->file_system_dispatcher(); 722 ChildThread::current()->file_system_dispatcher();
723 return file_system_dispatcher->Remove(path, false /* recursive */, 723 return file_system_dispatcher->Remove(path, false /* recursive */,
724 dispatcher); 724 dispatcher);
725 } 725 }
726 726
727 bool PepperPluginDelegateImpl::Rename( 727 bool PepperPluginDelegateImpl::Rename(
728 const FilePath& file_path, 728 const GURL& file_path,
729 const FilePath& new_file_path, 729 const GURL& new_file_path,
730 fileapi::FileSystemCallbackDispatcher* dispatcher) { 730 fileapi::FileSystemCallbackDispatcher* dispatcher) {
731 FileSystemDispatcher* file_system_dispatcher = 731 FileSystemDispatcher* file_system_dispatcher =
732 ChildThread::current()->file_system_dispatcher(); 732 ChildThread::current()->file_system_dispatcher();
733 return file_system_dispatcher->Move(file_path, new_file_path, dispatcher); 733 return file_system_dispatcher->Move(file_path, new_file_path, dispatcher);
734 } 734 }
735 735
736 bool PepperPluginDelegateImpl::ReadDirectory( 736 bool PepperPluginDelegateImpl::ReadDirectory(
737 const FilePath& directory_path, 737 const GURL& directory_path,
738 fileapi::FileSystemCallbackDispatcher* dispatcher) { 738 fileapi::FileSystemCallbackDispatcher* dispatcher) {
739 FileSystemDispatcher* file_system_dispatcher = 739 FileSystemDispatcher* file_system_dispatcher =
740 ChildThread::current()->file_system_dispatcher(); 740 ChildThread::current()->file_system_dispatcher();
741 return file_system_dispatcher->ReadDirectory(directory_path, dispatcher); 741 return file_system_dispatcher->ReadDirectory(directory_path, dispatcher);
742 } 742 }
743 743
744 base::PlatformFileError PepperPluginDelegateImpl::OpenFile( 744 base::PlatformFileError PepperPluginDelegateImpl::OpenFile(
745 const webkit::ppapi::PepperFilePath& path, 745 const webkit::ppapi::PepperFilePath& path,
746 int flags, 746 int flags,
747 base::PlatformFile* file) { 747 base::PlatformFile* file) {
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 } 958 }
959 959
960 void PepperPluginDelegateImpl::HasUnsupportedFeature() { 960 void PepperPluginDelegateImpl::HasUnsupportedFeature() {
961 render_view_->Send(new ViewHostMsg_PDFHasUnsupportedFeature( 961 render_view_->Send(new ViewHostMsg_PDFHasUnsupportedFeature(
962 render_view_->routing_id())); 962 render_view_->routing_id()));
963 } 963 }
964 964
965 P2PSocketDispatcher* PepperPluginDelegateImpl::GetP2PSocketDispatcher() { 965 P2PSocketDispatcher* PepperPluginDelegateImpl::GetP2PSocketDispatcher() {
966 return render_view_->p2p_socket_dispatcher(); 966 return render_view_->p2p_socket_dispatcher();
967 } 967 }
OLDNEW
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.h ('k') | webkit/fileapi/file_system_callback_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698