#include "components/services/app_service/public/cpp/intent.h"
#include "base/files/safe_base_name.h"
#include "base/notreached.h"
#include "base/ranges/algorithm.h"
#include "components/services/app_service/public/cpp/app_types.h"
#include "components/services/app_service/public/cpp/intent_util.h"
namespace apps {
IntentFile::IntentFile(const GURL& url) : … { … }
IntentFile::~IntentFile() = default;
bool IntentFile::operator==(const IntentFile& other) const { … }
bool IntentFile::operator!=(const IntentFile& other) const { … }
std::unique_ptr<IntentFile> IntentFile::Clone() const { … }
bool IntentFile::MatchConditionValue(const ConditionValuePtr& condition_value) { … }
bool IntentFile::MatchAnyConditionValue(
const std::vector<ConditionValuePtr>& condition_values) { … }
Intent::Intent(const std::string& action) : … { … }
Intent::Intent(const std::string& action, const GURL& url)
: … { … }
Intent::Intent(const std::string& action, std::vector<IntentFilePtr> files)
: … { … }
Intent::~Intent() = default;
bool Intent::operator==(const Intent& other) const { … }
bool Intent::operator!=(const Intent& other) const { … }
std::unique_ptr<Intent> Intent::Clone() const { … }
std::optional<std::string> Intent::GetIntentConditionValueByType(
ConditionType condition_type) { … }
bool Intent::MatchAuthorityCondition(const ConditionPtr& condition) { … }
bool Intent::MatchFileCondition(const ConditionPtr& condition) { … }
bool Intent::MatchCondition(const ConditionPtr& condition) { … }
bool Intent::MatchFilter(const IntentFilterPtr& filter) { … }
bool Intent::IsShareIntent() { … }
bool Intent::OnlyShareToDrive() { … }
bool Intent::IsIntentValid() { … }
}