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

Side by Side Diff: chrome/browser/local_discovery/storage/privet_filesystem_async_util.cc

Issue 177373010: [Privet FS] Allow files to be able to be copied in to the privet filesystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser/local_discovery/storage/privet_filesystem_async_util.h" 5 #include "chrome/browser/local_discovery/storage/privet_filesystem_async_util.h"
6 6
7 #include "base/platform_file.h" 7 #include "base/platform_file.h"
8 #include "chrome/browser/local_discovery/storage/path_util.h" 8 #include "chrome/browser/local_discovery/storage/path_util.h"
9 #include "webkit/browser/fileapi/file_system_url.h" 9 #include "webkit/browser/fileapi/file_system_url.h"
10 #include "webkit/common/blob/shareable_file_reference.h" 10 #include "webkit/common/blob/shareable_file_reference.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 src_url, 141 src_url,
142 dest_url, 142 dest_url,
143 callback)); 143 callback));
144 } 144 }
145 145
146 void PrivetFileSystemAsyncUtil::CopyInForeignFile( 146 void PrivetFileSystemAsyncUtil::CopyInForeignFile(
147 scoped_ptr<fileapi::FileSystemOperationContext> context, 147 scoped_ptr<fileapi::FileSystemOperationContext> context,
148 const base::FilePath& src_file_path, 148 const base::FilePath& src_file_path,
149 const fileapi::FileSystemURL& dest_url, 149 const fileapi::FileSystemURL& dest_url,
150 const StatusCallback& callback) { 150 const StatusCallback& callback) {
151 NOTIMPLEMENTED(); 151 content::BrowserThread::PostTask(
152 callback.Run(base::File::FILE_ERROR_INVALID_OPERATION); 152 content::BrowserThread::UI,
153 FROM_HERE,
154 base::Bind(&PrivetFileSystemOperationFactory::CopyInForeignFile,
155 operation_factory_,
156 src_file_path,
157 dest_url,
158 callback));
153 } 159 }
154 160
155 void PrivetFileSystemAsyncUtil::DeleteFile( 161 void PrivetFileSystemAsyncUtil::DeleteFile(
156 scoped_ptr<fileapi::FileSystemOperationContext> context, 162 scoped_ptr<fileapi::FileSystemOperationContext> context,
157 const fileapi::FileSystemURL& url, 163 const fileapi::FileSystemURL& url,
158 const StatusCallback& callback) { 164 const StatusCallback& callback) {
159 content::BrowserThread::PostTask( 165 content::BrowserThread::PostTask(
160 content::BrowserThread::UI, 166 content::BrowserThread::UI,
161 FROM_HERE, 167 FROM_HERE,
162 base::Bind(&PrivetFileSystemOperationFactory::DeleteFile, 168 base::Bind(&PrivetFileSystemOperationFactory::DeleteFile,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 content::BrowserThread::PostTask( 204 content::BrowserThread::PostTask(
199 content::BrowserThread::UI, 205 content::BrowserThread::UI,
200 FROM_HERE, 206 FROM_HERE,
201 base::Bind(&PrivetFileSystemOperationFactory::CreateSnapshotFile, 207 base::Bind(&PrivetFileSystemOperationFactory::CreateSnapshotFile,
202 operation_factory_, 208 operation_factory_,
203 url, 209 url,
204 callback)); 210 callback));
205 } 211 }
206 212
207 } // namespace local_discovery 213 } // namespace local_discovery
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698