| // Copyright 2019 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. |
| |
| #ifndef COMPONENTS_SERVICES_QUARANTINE_QUARANTINE_IMPL_H_ |
| #define COMPONENTS_SERVICES_QUARANTINE_QUARANTINE_IMPL_H_ |
| |
| #include <memory> |
| |
| #include "components/services/quarantine/public/mojom/quarantine.mojom.h" |
| #include "mojo/public/cpp/bindings/pending_receiver.h" |
| #include "mojo/public/cpp/bindings/receiver.h" |
| |
| namespace quarantine { |
| |
| class QuarantineImpl : public mojom::Quarantine { |
| public: |
| QuarantineImpl(); |
| explicit QuarantineImpl(mojo::PendingReceiver<mojom::Quarantine> receiver); |
| ~QuarantineImpl() override; |
| |
| // mojom::Quarantine: |
| void QuarantineFile( |
| const base::FilePath& full_path, |
| const GURL& source_url, |
| const GURL& referrer_url, |
| const std::string& client_guid, |
| mojom::Quarantine::QuarantineFileCallback callback) override; |
| |
| private: |
| mojo::Receiver<mojom::Quarantine> receiver_{this}; |
| |
| DISALLOW_COPY_AND_ASSIGN(QuarantineImpl); |
| }; |
| |
| } // namespace quarantine |
| |
| #endif // COMPONENTS_SERVICES_QUARANTINE_QUARANTINE_IMPL_H_ |