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

Side by Side Diff: chrome/renderer/render_view.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/renderer/render_view.h ('k') | chrome/worker/webworkerclient_proxy.cc » ('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 "chrome/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 3670 matching lines...) Expand 10 before | Expand all | Expand 10 after
3681 -1, 3681 -1,
3682 selection_rect, 3682 selection_rect,
3683 active_match_ordinal, 3683 active_match_ordinal,
3684 false)); 3684 false));
3685 } 3685 }
3686 3686
3687 void RenderView::openFileSystem( 3687 void RenderView::openFileSystem(
3688 WebFrame* frame, 3688 WebFrame* frame,
3689 WebFileSystem::Type type, 3689 WebFileSystem::Type type,
3690 long long size, 3690 long long size,
3691 bool create,
3691 WebFileSystemCallbacks* callbacks) { 3692 WebFileSystemCallbacks* callbacks) {
3692 DCHECK(callbacks); 3693 DCHECK(callbacks);
3693 3694
3694 WebSecurityOrigin origin = frame->securityOrigin(); 3695 WebSecurityOrigin origin = frame->securityOrigin();
3695 if (origin.isEmpty()) { 3696 if (origin.isEmpty()) {
3696 // Uninitialized document? 3697 // Uninitialized document?
3697 callbacks->didFail(WebKit::WebFileErrorAbort); 3698 callbacks->didFail(WebKit::WebFileErrorAbort);
3698 return; 3699 return;
3699 } 3700 }
3700 3701
3701 ChildThread::current()->file_system_dispatcher()->OpenFileSystem( 3702 ChildThread::current()->file_system_dispatcher()->OpenFileSystem(
3702 GURL(origin.toString()), static_cast<fileapi::FileSystemType>(type), 3703 GURL(origin.toString()), static_cast<fileapi::FileSystemType>(type),
3703 size, new WebFileSystemCallbackDispatcher(callbacks)); 3704 size, create, new WebFileSystemCallbackDispatcher(callbacks));
3704 } 3705 }
3705 3706
3706 // webkit_glue::WebPluginPageDelegate ----------------------------------------- 3707 // webkit_glue::WebPluginPageDelegate -----------------------------------------
3707 3708
3708 webkit_glue::WebPluginDelegate* RenderView::CreatePluginDelegate( 3709 webkit_glue::WebPluginDelegate* RenderView::CreatePluginDelegate(
3709 const FilePath& file_path, 3710 const FilePath& file_path,
3710 const std::string& mime_type) { 3711 const std::string& mime_type) {
3711 if (!PluginChannelHost::IsListening()) 3712 if (!PluginChannelHost::IsListening())
3712 return NULL; 3713 return NULL;
3713 3714
(...skipping 2403 matching lines...) Expand 10 before | Expand all | Expand 10 after
6117 IPC::PlatformFileForTransitToPlatformFile(file_for_transit), 6118 IPC::PlatformFileForTransitToPlatformFile(file_for_transit),
6118 message_id); 6119 message_id);
6119 } 6120 }
6120 6121
6121 #if defined(OS_MACOSX) 6122 #if defined(OS_MACOSX)
6122 void RenderView::OnSelectPopupMenuItem(int selected_index) { 6123 void RenderView::OnSelectPopupMenuItem(int selected_index) {
6123 external_popup_menu_->DidSelectItem(selected_index); 6124 external_popup_menu_->DidSelectItem(selected_index);
6124 external_popup_menu_.reset(); 6125 external_popup_menu_.reset();
6125 } 6126 }
6126 #endif 6127 #endif
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.h ('k') | chrome/worker/webworkerclient_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698