chromium/chrome/browser/apps/platform_apps/api/sync_file_system/sync_file_system_api.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/apps/platform_apps/api/sync_file_system/sync_file_system_api.h"

#include <memory>
#include <string>
#include <utility>

#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/notreached.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/apps/platform_apps/api/sync_file_system/extension_sync_event_observer.h"
#include "chrome/browser/apps/platform_apps/api/sync_file_system/sync_file_system_api_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync_file_system/sync_file_status.h"
#include "chrome/browser/sync_file_system/sync_file_system_service.h"
#include "chrome/browser/sync_file_system/sync_file_system_service_factory.h"
#include "chrome/browser/sync_file_system/syncable_file_system_util.h"
#include "chrome/common/apps/platform_apps/api/sync_file_system.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/common/content_client.h"
#include "storage/browser/file_system/file_system_context.h"
#include "storage/browser/file_system/file_system_url.h"
#include "storage/browser/file_system/file_system_util.h"
#include "storage/browser/quota/quota_manager.h"
#include "storage/common/file_system/file_system_types.h"
#include "storage/common/file_system/file_system_util.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "url/gurl.h"
#include "url/origin.h"

BrowserContext;
BrowserThread;
ConflictResolutionPolicy;
SyncFileStatus;
SyncFileSystemServiceFactory;
SyncStatusCode;

namespace chrome_apps {
namespace api {

namespace {

// Error messages.
const char kErrorMessage[] =;
const char kUnsupportedConflictResolutionPolicy[] =;

::sync_file_system::SyncFileSystemService* GetSyncFileSystemService(
    content::BrowserContext* browser_context) {}

std::string ErrorToString(SyncStatusCode code) {}

const char* QuotaStatusCodeToString(blink::mojom::QuotaStatusCode status) {}

}  // namespace

ExtensionFunction::ResponseAction
SyncFileSystemDeleteFileSystemFunction::Run() {}

void SyncFileSystemDeleteFileSystemFunction::DidDeleteFileSystem(
    base::File::Error error) {}

ExtensionFunction::ResponseAction
SyncFileSystemRequestFileSystemFunction::Run() {}

storage::FileSystemContext*
SyncFileSystemRequestFileSystemFunction::GetFileSystemContext() {}

void SyncFileSystemRequestFileSystemFunction::DidOpenFileSystem(
    const storage::FileSystemURL& root_url,
    const std::string& file_system_name,
    base::File::Error error) {}

ExtensionFunction::ResponseAction SyncFileSystemGetFileStatusFunction::Run() {}

void SyncFileSystemGetFileStatusFunction::DidGetFileStatus(
    const SyncStatusCode sync_status_code,
    const SyncFileStatus sync_file_status) {}

SyncFileSystemGetFileStatusesFunction::SyncFileSystemGetFileStatusesFunction() {}

SyncFileSystemGetFileStatusesFunction::
    ~SyncFileSystemGetFileStatusesFunction() {}

ExtensionFunction::ResponseAction SyncFileSystemGetFileStatusesFunction::Run() {}

void SyncFileSystemGetFileStatusesFunction::DidGetFileStatus(
    const storage::FileSystemURL& file_system_url,
    SyncStatusCode sync_status_code,
    SyncFileStatus sync_file_status) {}

ExtensionFunction::ResponseAction
SyncFileSystemGetUsageAndQuotaFunction::Run() {}

void SyncFileSystemGetUsageAndQuotaFunction::DidGetUsageAndQuota(
    blink::mojom::QuotaStatusCode status,
    int64_t usage,
    int64_t quota) {}

ExtensionFunction::ResponseAction
SyncFileSystemSetConflictResolutionPolicyFunction::Run() {}

ExtensionFunction::ResponseAction
SyncFileSystemGetConflictResolutionPolicyFunction::Run() {}

ExtensionFunction::ResponseAction
SyncFileSystemGetServiceStatusFunction::Run() {}

}  // namespace api
}  // namespace chrome_apps