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

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

Issue 4350001: Added ability to propogate create to suggest whether or not filesystem's root... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_view.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) 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698