blob: b9cf11a6fa8d2aaf87a71a759994e667a337202d [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/metrics/public/cpp/ukm_source_id.h"
#include "base/feature_list.h"
#include <string>
class GURL;
namespace app_list {
class AppLaunchEventLogger;
namespace ukm {
const base::Feature kUkmAppLogging{"UkmAppLogging",
class AppSourceUrlRecorder {
friend class AppSourceUrlRecorderTest;
friend class app_list::AppLaunchEventLogger;
// Get a UKM SourceId for a Chrome app.
static SourceId GetSourceIdForChromeApp(const std::string& id);
// Get a UKM SourceId for an Arc app.
static SourceId GetSourceIdForArc(const std::string& package_name);
// Get a UKM SourceId for a PWA.
static SourceId GetSourceIdForPWA(const GURL& url);
// For internal use only.
static SourceId GetSourceIdForUrl(const GURL& url);
} // namespace ukm