#ifndef COMPONENTS_LENS_LENS_URL_UTILS_H_
#define COMPONENTS_LENS_LENS_URL_UTILS_H_
#include <string>
#include "components/lens/lens_entrypoints.h"
#include "components/lens/lens_metadata.mojom.h"
#include "components/lens/lens_rendering_environment.h"
#include "ui/gfx/geometry/size_f.h"
class GURL;
namespace lens {
constexpr char kPayloadQueryParameter[] = …;
constexpr char kTranslateSourceQueryParameter[] = …;
constexpr char kTranslateTargetQueryParameter[] = …;
constexpr char kFilterTypeQueryParameter[] = …;
constexpr char kTranslateFilterTypeQueryParameterValue[] = …;
extern void AppendLogsQueryParam(
std::string* query_string,
const std::vector<lens::mojom::LatencyLogPtr>& log_data);
extern GURL AppendOrReplaceStartTimeIfLensRequest(const GURL& url);
extern GURL AppendOrReplaceViewportSizeForRequest(
const GURL& url,
const gfx::Size& viewport_size);
extern GURL AppendOrReplaceQueryParametersForLensRequest(
const GURL& url,
lens::EntryPoint ep,
lens::RenderingEnvironment re,
bool is_side_panel_request);
extern std::string GetQueryParametersForLensRequest(
lens::EntryPoint ep,
bool is_lens_side_panel_request,
bool is_full_screen_request,
bool is_companion_request = false);
bool IsValidLensResultUrl(const GURL& url);
bool IsLensUrl(const GURL& url);
}
#endif