chromium/third_party/blink/renderer/core/frame/use_counter_impl.cc

/*
 * Copyright (C) 2012 Google, Inc. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY GOOGLE INC. ``AS IS'' AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include "third_party/blink/renderer/core/frame/use_counter_impl.h"

#include "base/metrics/histogram_macros.h"
#include "third_party/blink/public/common/scheme_registry.h"
#include "third_party/blink/public/mojom/permissions_policy/permissions_policy_feature.mojom-blink.h"
#include "third_party/blink/public/mojom/use_counter/use_counter_feature.mojom-blink.h"
#include "third_party/blink/public/mojom/use_counter/use_counter_feature.mojom-shared.h"
#include "third_party/blink/renderer/core/css/css_style_sheet.h"
#include "third_party/blink/renderer/core/css/style_sheet_contents.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/frame.h"
#include "third_party/blink/renderer/core/frame/frame_console.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/local_frame_client.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/platform/instrumentation/tracing/trace_event.h"
#include "third_party/blink/renderer/platform/weborigin/scheme_registry.h"

namespace blink {
namespace {
mojom::blink::UseCounterFeatureType ToFeatureType(
    UseCounterImpl::CSSPropertyType type) {}

mojom::blink::UseCounterFeatureType ToFeatureType(
    UseCounterImpl::PermissionsPolicyUsageType type) {}
}  // namespace

UseCounterMuteScope::UseCounterMuteScope(const Element& element)
    :{}

UseCounterMuteScope::~UseCounterMuteScope() {}

UseCounterImpl::UseCounterImpl(Context context, CommitState commit_state)
    :{}

void UseCounterImpl::MuteForInspector() {}

void UseCounterImpl::UnmuteForInspector() {}

bool UseCounterImpl::IsCounted(WebFeature web_feature) const {}

void UseCounterImpl::ClearMeasurementForTesting(WebFeature web_feature) {}

bool UseCounterImpl::IsWebDXFeatureCounted(WebDXFeature webdx_feature) const {}

void UseCounterImpl::ClearMeasurementForTesting(WebDXFeature webdx_feature) {}

void UseCounterImpl::Trace(Visitor* visitor) const {}

void UseCounterImpl::DidCommitLoad(const LocalFrame* frame) {}

bool UseCounterImpl::IsCounted(CSSPropertyID unresolved_property,
                               CSSPropertyType type) const {}

bool UseCounterImpl::IsCounted(const UseCounterFeature& feature) const {}

void UseCounterImpl::AddObserver(Observer* observer) {}

void UseCounterImpl::Count(const UseCounterFeature& feature,
                           const LocalFrame* source_frame) {}

void UseCounterImpl::Count(CSSPropertyID property,
                           CSSPropertyType type,
                           const LocalFrame* source_frame) {}

void UseCounterImpl::Count(WebFeature web_feature,
                           const LocalFrame* source_frame) {}

void UseCounterImpl::CountWebDXFeature(WebDXFeature web_feature,
                                       const LocalFrame* source_frame) {}

void UseCounterImpl::CountPermissionsPolicyUsage(
    mojom::blink::PermissionsPolicyFeature feature,
    PermissionsPolicyUsageType usage_type,
    const LocalFrame& source_frame) {}

void UseCounterImpl::NotifyFeatureCounted(WebFeature feature) {}

void UseCounterImpl::CountFeature(WebFeature feature) const {}

bool UseCounterImpl::ReportMeasurement(const UseCounterFeature& feature,
                                       const LocalFrame* frame) {}

// Note that HTTPArchive tooling looks specifically for this event - see
// https://github.com/HTTPArchive/httparchive/issues/59
void UseCounterImpl::TraceMeasurement(const UseCounterFeature& feature) {}
}  // namespace blink