chromium/chrome/browser/safe_browsing/cloud_content_scanning/connector_data_pipe_getter.h

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

#ifndef CHROME_BROWSER_SAFE_BROWSING_CLOUD_CONTENT_SCANNING_CONNECTOR_DATA_PIPE_GETTER_H_
#define CHROME_BROWSER_SAFE_BROWSING_CLOUD_CONTENT_SCANNING_CONNECTOR_DATA_PIPE_GETTER_H_

#include <stdint.h>

#include <memory>

#include "base/compiler_specific.h"
#include "base/files/file.h"
#include "base/files/memory_mapped_file.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/read_only_shared_memory_region.h"
#include "base/memory/shared_memory_mapping.h"
#include "base/time/time.h"
#include "mojo/public/cpp/bindings/receiver_set.h"
#include "services/network/public/mojom/data_pipe_getter.mojom.h"

namespace safe_browsing {

// This class implements mojom::DataPipeGetter for:
//
// 1. Multipart request with a body that has the following format:
// --BOUNDARY
// Content-Type: application/octet-stream
//
// <file metadata>
// --BOUNDARY
// Content-Type: application/octet-stream
//
// <file data>
// --BOUNDARY--
//
// 2. Resumable request with a body that contains solely file or page data.
class ConnectorDataPipeGetter : public network::mojom::DataPipeGetter {};

}  // namespace safe_browsing

#endif  // CHROME_BROWSER_SAFE_BROWSING_CLOUD_CONTENT_SCANNING_CONNECTOR_DATA_PIPE_GETTER_H_