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

Unified Diff: chrome/browser/local_discovery/storage/privet_filesystem_backend.cc

Issue 492693004: Delete Privet filesystem code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/local_discovery/storage/privet_filesystem_backend.cc
diff --git a/chrome/browser/local_discovery/storage/privet_filesystem_backend.cc b/chrome/browser/local_discovery/storage/privet_filesystem_backend.cc
deleted file mode 100644
index 9abfcafeb9c1aafc2e378e92206d6330464f5e53..0000000000000000000000000000000000000000
--- a/chrome/browser/local_discovery/storage/privet_filesystem_backend.cc
+++ /dev/null
@@ -1,110 +0,0 @@
-// Copyright 2014 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 "chrome/browser/local_discovery/storage/privet_filesystem_backend.h"
-
-#include <string>
-
-#include "chrome/browser/local_discovery/storage/privet_filesystem_async_util.h"
-#include "chrome/browser/local_discovery/storage/privet_filesystem_constants.h"
-#include "webkit/browser/fileapi/file_system_operation.h"
-#include "webkit/browser/fileapi/file_system_url.h"
-
-namespace local_discovery {
-
-PrivetFileSystemBackend::PrivetFileSystemBackend(
- storage::ExternalMountPoints* mount_points,
- content::BrowserContext* browser_context)
- : mount_points_(mount_points),
- async_util_(new PrivetFileSystemAsyncUtil(browser_context)) {
-}
-
-PrivetFileSystemBackend::~PrivetFileSystemBackend() {
-}
-
-bool PrivetFileSystemBackend::CanHandleType(
- storage::FileSystemType type) const {
- return (type == storage::kFileSystemTypeCloudDevice);
-}
-
-void PrivetFileSystemBackend::Initialize(storage::FileSystemContext* context) {
- mount_points_->RegisterFileSystem("privet",
- storage::kFileSystemTypeCloudDevice,
- storage::FileSystemMountOption(),
- base::FilePath(kPrivetFilePath));
-}
-
-void PrivetFileSystemBackend::ResolveURL(
- const storage::FileSystemURL& url,
- storage::OpenFileSystemMode mode,
- const OpenFileSystemCallback& callback) {
- // TODO(noamsml): Provide a proper root url and a proper name.
- GURL root_url = GURL(
- storage::GetExternalFileSystemRootURIString(url.origin(), std::string()));
- callback.Run(root_url, std::string(), base::File::FILE_OK);
-}
-
-storage::FileSystemQuotaUtil* PrivetFileSystemBackend::GetQuotaUtil() {
- // No quota support.
- return NULL;
-}
-
-storage::AsyncFileUtil* PrivetFileSystemBackend::GetAsyncFileUtil(
- storage::FileSystemType type) {
- return async_util_.get();
-}
-
-storage::WatcherManager* PrivetFileSystemBackend::GetWatcherManager(
- storage::FileSystemType type) {
- return NULL;
-}
-
-storage::CopyOrMoveFileValidatorFactory*
-PrivetFileSystemBackend::GetCopyOrMoveFileValidatorFactory(
- storage::FileSystemType type,
- base::File::Error* error_code) {
- DCHECK(error_code);
- *error_code = base::File::FILE_OK;
- return NULL;
-}
-
-storage::FileSystemOperation*
-PrivetFileSystemBackend::CreateFileSystemOperation(
- const storage::FileSystemURL& url,
- storage::FileSystemContext* context,
- base::File::Error* error_code) const {
- return storage::FileSystemOperation::Create(
- url,
- context,
- make_scoped_ptr(new storage::FileSystemOperationContext(context)));
-}
-
-bool PrivetFileSystemBackend::SupportsStreaming(
- const storage::FileSystemURL& url) const {
- return false;
-}
-
-bool PrivetFileSystemBackend::HasInplaceCopyImplementation(
- storage::FileSystemType type) const {
- return true;
-}
-
-scoped_ptr<storage::FileStreamReader>
-PrivetFileSystemBackend::CreateFileStreamReader(
- const storage::FileSystemURL& url,
- int64 offset,
- const base::Time& expected_modification_time,
- storage::FileSystemContext* context) const {
- return scoped_ptr<storage::FileStreamReader>();
-}
-
-scoped_ptr<storage::FileStreamWriter>
-PrivetFileSystemBackend::CreateFileStreamWriter(
- const storage::FileSystemURL& url,
- int64 offset,
- storage::FileSystemContext* context) const {
- return scoped_ptr<storage::FileStreamWriter>();
-}
-
-} // namespace local_discovery

Powered by Google App Engine
This is Rietveld 408576698