chromium/components/services/app_service/public/cpp/intent_filter_util.cc

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

#include "components/services/app_service/public/cpp/intent_filter_util.h"

#include <string_view>

#include "base/logging.h"
#include "base/strings/strcat.h"
#include "base/strings/string_util.h"
#include "components/services/app_service/public/cpp/intent_util.h"
#include "url/url_constants.h"

namespace apps_util {

namespace {

// Assumes that the inputs are already not equal to each other.
bool ConditionValuesHaveDirectionalOverlap(apps::PatternMatchType match_type1,
                                           std::string_view value1,
                                           apps::PatternMatchType match_type2,
                                           std::string_view value2) {}

bool ConditionValuesHaveOverlap(apps::PatternMatchType match_type1,
                                std::string_view value1,
                                apps::PatternMatchType match_type2,
                                std::string_view value2) {}

bool ConditionValuesHaveOverlap(const apps::ConditionType type,
                                const apps::ConditionValuePtr& value1,
                                const apps::ConditionValuePtr& value2) {}

bool ConditionsHaveOverlap(const apps::ConditionPtr& condition1,
                           const apps::ConditionPtr& condition2) {}

}  // namespace

const char kValueKey[] =;
const char kMatchTypeKey[] =;
const char kConditionTypeKey[] =;
const char kConditionValuesKey[] =;
const char kConditionsKey[] =;
const char kActivityNameKey[] =;
const char kActivityLabelKey[] =;

apps::IntentFilterPtr MakeIntentFilterForUrlScope(const GURL& url,
                                                  bool omit_port_for_testing) {}

bool FiltersHaveOverlap(const apps::IntentFilterPtr& filter1,
                        const apps::IntentFilterPtr& filter2) {}

void UpgradeFilter(apps::IntentFilterPtr& filter) {}

bool IsSupportedLinkForApp(const std::string& app_id,
                           const apps::IntentFilterPtr& intent_filter) {}

size_t IntentFilterUrlMatchLength(const apps::IntentFilterPtr& intent_filter,
                                  const GURL& url) {}

std::set<std::string> GetSupportedLinksForAppManagement(
    const apps::IntentFilterPtr& intent_filter) {}

base::Value::Dict ConvertConditionValueToDict(
    const apps::ConditionValuePtr& condition_value) {}

apps::ConditionValuePtr ConvertDictToConditionValue(
    const base::Value::Dict& dict) {}

base::Value::Dict ConvertConditionToDict(const apps::ConditionPtr& condition) {}

apps::ConditionPtr ConvertDictToCondition(const base::Value::Dict& dict) {}

base::Value::List ConvertIntentFilterConditionsToList(
    const apps::IntentFilterPtr& intent_filter) {}

apps::IntentFilterPtr ConvertListToIntentFilterConditions(
    const base::Value::List* value) {}

base::Value::Dict ConvertIntentFilterToDict(
    const apps::IntentFilterPtr& intent_filter) {}

apps::IntentFilterPtr ConvertDictToIntentFilter(const base::Value::Dict* dict) {}

}  // namespace apps_util