Index: webkit/browser/fileapi/transient_file_util.cc |
diff --git a/webkit/browser/fileapi/transient_file_util.cc b/webkit/browser/fileapi/transient_file_util.cc |
deleted file mode 100644 |
index 334b5ede3d484aef58ed2b6d08157941e5f6a957..0000000000000000000000000000000000000000 |
--- a/webkit/browser/fileapi/transient_file_util.cc |
+++ /dev/null |
@@ -1,55 +0,0 @@ |
-// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#include "webkit/browser/fileapi/transient_file_util.h" |
- |
-#include <string> |
- |
-#include "base/bind.h" |
-#include "base/files/file_path.h" |
-#include "webkit/browser/fileapi/file_system_operation_context.h" |
-#include "webkit/browser/fileapi/file_system_url.h" |
-#include "webkit/browser/fileapi/isolated_context.h" |
- |
-using storage::ScopedFile; |
- |
-namespace storage { |
- |
-namespace { |
- |
-void RevokeFileSystem(const std::string& filesystem_id, |
- const base::FilePath& /*path*/) { |
- IsolatedContext::GetInstance()->RevokeFileSystem(filesystem_id); |
-} |
- |
-} // namespace |
- |
-ScopedFile TransientFileUtil::CreateSnapshotFile( |
- FileSystemOperationContext* context, |
- const FileSystemURL& url, |
- base::File::Error* error, |
- base::File::Info* file_info, |
- base::FilePath* platform_path) { |
- DCHECK(file_info); |
- *error = GetFileInfo(context, url, file_info, platform_path); |
- if (*error == base::File::FILE_OK && file_info->is_directory) |
- *error = base::File::FILE_ERROR_NOT_A_FILE; |
- if (*error != base::File::FILE_OK) |
- return ScopedFile(); |
- |
- // Sets-up a transient filesystem. |
- DCHECK(!platform_path->empty()); |
- DCHECK(!url.filesystem_id().empty()); |
- |
- ScopedFile scoped_file( |
- *platform_path, |
- ScopedFile::DELETE_ON_SCOPE_OUT, |
- context->task_runner()); |
- scoped_file.AddScopeOutCallback( |
- base::Bind(&RevokeFileSystem, url.filesystem_id()), NULL); |
- |
- return scoped_file.Pass(); |
-} |
- |
-} // namespace storage |