OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <cmath> | 5 #include <cmath> |
6 | 6 |
7 #include "chrome/renderer/pepper_plugin_delegate_impl.h" | 7 #include "chrome/renderer/pepper_plugin_delegate_impl.h" |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/surface/transport_dib.h" | 10 #include "app/surface/transport_dib.h" |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 } | 682 } |
683 | 683 |
684 bool PepperPluginDelegateImpl::OpenFileSystem( | 684 bool PepperPluginDelegateImpl::OpenFileSystem( |
685 const GURL& url, | 685 const GURL& url, |
686 fileapi::FileSystemType type, | 686 fileapi::FileSystemType type, |
687 long long size, | 687 long long size, |
688 fileapi::FileSystemCallbackDispatcher* dispatcher) { | 688 fileapi::FileSystemCallbackDispatcher* dispatcher) { |
689 FileSystemDispatcher* file_system_dispatcher = | 689 FileSystemDispatcher* file_system_dispatcher = |
690 ChildThread::current()->file_system_dispatcher(); | 690 ChildThread::current()->file_system_dispatcher(); |
691 return file_system_dispatcher->OpenFileSystem( | 691 return file_system_dispatcher->OpenFileSystem( |
692 url, type, size, dispatcher); | 692 url, type, size, true /* create */, dispatcher); |
693 } | 693 } |
694 | 694 |
695 bool PepperPluginDelegateImpl::MakeDirectory( | 695 bool PepperPluginDelegateImpl::MakeDirectory( |
696 const FilePath& path, | 696 const FilePath& path, |
697 bool recursive, | 697 bool recursive, |
698 fileapi::FileSystemCallbackDispatcher* dispatcher) { | 698 fileapi::FileSystemCallbackDispatcher* dispatcher) { |
699 FileSystemDispatcher* file_system_dispatcher = | 699 FileSystemDispatcher* file_system_dispatcher = |
700 ChildThread::current()->file_system_dispatcher(); | 700 ChildThread::current()->file_system_dispatcher(); |
701 return file_system_dispatcher->Create( | 701 return file_system_dispatcher->Create( |
702 path, false, true, recursive, dispatcher); | 702 path, false, true, recursive, dispatcher); |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
892 } | 892 } |
893 | 893 |
894 void PepperPluginDelegateImpl::DidStopLoading() { | 894 void PepperPluginDelegateImpl::DidStopLoading() { |
895 render_view_->DidStopLoadingForPlugin(); | 895 render_view_->DidStopLoadingForPlugin(); |
896 } | 896 } |
897 | 897 |
898 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) { | 898 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) { |
899 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions( | 899 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions( |
900 render_view_->routing_id(), restrictions)); | 900 render_view_->routing_id(), restrictions)); |
901 } | 901 } |
OLD | NEW |