blob: fa43c3b8fa5fd5aa053a98d274e0a2106cd82254 [file] [log] [blame]
// Copyright 2019 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.
class GURL;
namespace weblayer {
class BrowserObserver {
virtual ~BrowserObserver() {}
// The URL bar should be updated to |url|.
virtual void DisplayedURLChanged(const GURL& url) {}
// Indicates that loading has started (|is_loading| is true) or is done
// (|is_loading| is false). |to_different_document| will be true unless the
// load is a fragment navigation, or triggered by
// history.pushState/replaceState.
virtual void LoadingStateChanged(bool is_loading,
bool to_different_document) {}
// This is fired after each navigation has completed, to indicate that the
// first paint after a non-empty layout has finished.
virtual void FirstContentfulPaint() {}
} // namespace weblayer