blob: ef2d50c8b6ff6d8f3794386792230b5b1dcf2702 [file] [log] [blame]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_BROWSER_LOAD_NOTIFICATION_DETAILS_H_
#define CONTENT_PUBLIC_BROWSER_LOAD_NOTIFICATION_DETAILS_H_
#include "base/memory/raw_ptr.h"
#include "content/public/browser/navigation_controller.h"
#include "ui/base/page_transition_types.h"
#include "url/gurl.h"
namespace content {
// The LoadNotificationDetails object contains additional details about a
// page load that has been completed. It was created to let the MetricsService
// log page load metrics.
struct LoadNotificationDetails {
LoadNotificationDetails(const GURL& url,
NavigationController* controller,
int session_index)
: url(url),
session_index(session_index),
controller(controller) {}
// The URL loaded.
GURL url;
// The index of the load within the tab session.
int session_index;
// The NavigationController for the load.
raw_ptr<NavigationController> controller;
};
} // namespace content
#endif // CONTENT_PUBLIC_BROWSER_LOAD_NOTIFICATION_DETAILS_H_