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

Unified Diff: chrome/browser/file_system/file_system_dispatcher_host.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/file_system/file_system_dispatcher_host.cc
===================================================================
--- chrome/browser/file_system/file_system_dispatcher_host.cc (revision 64803)
+++ chrome/browser/file_system/file_system_dispatcher_host.cc (working copy)
@@ -31,9 +31,11 @@
int request_id,
const GURL& origin_url,
fileapi::FileSystemType type,
+ bool create,
FileSystemDispatcherHost* dispatcher_host) {
// The task is self-destructed.
- new OpenFileSystemTask(request_id, origin_url, type, dispatcher_host);
+ new OpenFileSystemTask(
+ request_id, origin_url, type, create, dispatcher_host);
}
private:
@@ -54,12 +56,13 @@
int request_id,
const GURL& origin_url,
fileapi::FileSystemType type,
+ bool create,
FileSystemDispatcherHost* dispatcher_host)
: request_id_(request_id),
dispatcher_host_(dispatcher_host),
callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
dispatcher_host->context_->path_manager()->GetFileSystemRootPath(
- origin_url, type, true /* create */,
+ origin_url, type, create,
callback_factory_.NewCallback(&OpenFileSystemTask::DidGetRootPath));
}
@@ -138,7 +141,7 @@
void FileSystemDispatcherHost::OnOpenFileSystem(
int request_id, const GURL& origin_url, fileapi::FileSystemType type,
- int64 requested_size) {
+ int64 requested_size, bool create) {
ContentSetting content_setting =
host_content_settings_map_->GetContentSetting(
origin_url, CONTENT_SETTINGS_TYPE_COOKIES, "");
@@ -153,7 +156,7 @@
return;
}
- OpenFileSystemTask::Start(request_id, origin_url, type, this);
+ OpenFileSystemTask::Start(request_id, origin_url, type, create, this);
}
void FileSystemDispatcherHost::OnMove(
« no previous file with comments | « chrome/browser/file_system/file_system_dispatcher_host.h ('k') | chrome/common/file_system/file_system_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698