chromium/chrome/browser/ui/views/side_panel/companion/companion_utils.cc

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

#include "chrome/browser/ui/views/side_panel/companion/companion_utils.h"

#include "base/feature_list.h"
#include "base/metrics/histogram_functions.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/companion/core/constants.h"
#include "chrome/browser/companion/core/features.h"
#include "chrome/browser/companion/core/utils.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search/search.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.h"
#include "chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model_factory.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/webui_url_constants.h"
#include "components/lens/lens_features.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/web_contents.h"

namespace companion {

bool IsCompanionFeatureEnabled() {}

bool IsCompanionAvailableForCurrentActiveTab(const Browser* browser) {}

bool IsCompanionAvailableForURL(const GURL& url) {}

bool IsCompanionFeatureEnabledByPolicy(PrefService* pref_service) {}

bool IsSearchInCompanionSidePanelSupported(const Browser* browser) {}

bool IsSearchInCompanionSidePanelSupportedForProfile(
    Profile* profile,
    bool include_runtime_checks) {}

bool IsSearchWebInCompanionSidePanelSupported(const Browser* browser) {}

bool IsSearchImageInCompanionSidePanelSupported(const Browser* browser) {}

void UpdateCompanionDefaultPinnedToToolbarState(Profile* profile) {}

bool ShouldUseContextualLensPanelForImageSearch(const Browser* browser) {}

}  // namespace companion