in_process_file_patcher.h 925 B

12345678910111213141516171819202122
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_SERVICES_PATCH_IN_PROCESS_FILE_PATCHER_H_
  5. #define COMPONENTS_SERVICES_PATCH_IN_PROCESS_FILE_PATCHER_H_
  6. #include "components/services/patch/public/mojom/file_patcher.mojom.h"
  7. #include "mojo/public/cpp/bindings/pending_remote.h"
  8. namespace patch {
  9. // Creates an in-process instance of the FilePatcher service on a background
  10. // sequence and returns a PendingRemote which can be bound to communicate with
  11. // the service. This should only be used for testing environments or other
  12. // runtimes where multiprocess is infeasible, such as iOS, or Content
  13. // dependencies are not allowed.
  14. mojo::PendingRemote<mojom::FilePatcher> LaunchInProcessFilePatcher();
  15. } // namespace patch
  16. #endif // COMPONENTS_SERVICES_PATCH_IN_PROCESS_FILE_PATCHER_H_