chromium/components/performance_manager/decorators/page_load_tracker_decorator_helper.cc

// Copyright 2020 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/performance_manager/public/decorators/page_load_tracker_decorator_helper.h"

#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "components/performance_manager/decorators/page_load_tracker_decorator.h"
#include "components/performance_manager/graph/page_node_impl.h"
#include "components/performance_manager/performance_manager_impl.h"
#include "components/performance_manager/public/performance_manager.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"

namespace performance_manager {

namespace {

void NotifyPageLoadTrackerDecoratorOnPMSequence(content::WebContents* contents,
                                                void (*method)(PageNodeImpl*)) {}

}  // namespace

// Listens to content::WebContentsObserver notifications for a given WebContents
// and updates the PageLoadTracker accordingly. Destroys itself when the
// WebContents it observes is destroyed.
class PageLoadTrackerDecoratorHelper::WebContentsObserver
    : public content::WebContentsObserver {};

PageLoadTrackerDecoratorHelper::PageLoadTrackerDecoratorHelper() {}

PageLoadTrackerDecoratorHelper::~PageLoadTrackerDecoratorHelper() {}

void PageLoadTrackerDecoratorHelper::OnPageNodeCreatedForWebContents(
    content::WebContents* web_contents) {}

}  // namespace performance_manager