#include "services/shape_detection/shape_detection_service.h"
#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "services/shape_detection/text_detection_impl.h"
#if BUILDFLAG(IS_ANDROID)
#include "base/android/jni_android.h"
#include "services/shape_detection/shape_detection_jni_headers/InterfaceRegistrar_jni.h"
#endif
#if BUILDFLAG(IS_MAC)
#include "services/shape_detection/barcode_detection_provider_mac.h"
#elif BUILDFLAG(IS_ANDROID)
#elif BUILDFLAG(GOOGLE_CHROME_BRANDING) && BUILDFLAG(IS_CHROMEOS)
#include "services/shape_detection/barcode_detection_provider_barhopper.h"
#else
#include "services/shape_detection/barcode_detection_provider_impl.h"
#endif
#if BUILDFLAG(IS_WIN)
#include "services/shape_detection/face_detection_provider_win.h"
#elif BUILDFLAG(IS_MAC)
#include "services/shape_detection/face_detection_provider_mac.h"
#elif BUILDFLAG(IS_ANDROID)
#else
#include "services/shape_detection/face_detection_provider_impl.h"
#endif
namespace shape_detection {
ShapeDetectionService::ShapeDetectionService(
mojo::PendingReceiver<mojom::ShapeDetectionService> receiver)
: … { … }
ShapeDetectionService::~ShapeDetectionService() = default;
void ShapeDetectionService::BindBarcodeDetectionProvider(
mojo::PendingReceiver<mojom::BarcodeDetectionProvider> receiver) { … }
void ShapeDetectionService::BindFaceDetectionProvider(
mojo::PendingReceiver<mojom::FaceDetectionProvider> receiver) { … }
void ShapeDetectionService::BindTextDetection(
mojo::PendingReceiver<mojom::TextDetection> receiver) { … }
}