blob: 1e15d7f187080cb71c8888560a65191ed8f55c04 [file] [log] [blame]
// Copyright 2021 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.
#ifndef CONTENT_PUBLIC_BROWSER_PRERENDER_HANDLE_H_
#define CONTENT_PUBLIC_BROWSER_PRERENDER_HANDLE_H_
namespace content {
// PrerenderHandle is the class used to encapsulate prerender resources in
// content/. In its destructor, the resource is expected to be released.
class PrerenderHandle {
public:
PrerenderHandle() = default;
virtual ~PrerenderHandle() = default;
// Returns the initial URL that is passed to PrerenderHostRegistry for
// starting a prerendering page.
virtual GURL GetInitialPrerenderingUrl() = 0;
virtual base::WeakPtr<PrerenderHandle> GetWeakPtr() = 0;
};
} // namespace content
#endif // CONTENT_PUBLIC_BROWSER_PRERENDER_HANDLE_H_