12345678910111213141516171819202122232425262728293031323334 |
- // 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.
- #ifndef WEBLAYER_PUBLIC_TAB_OBSERVER_H_
- #define WEBLAYER_PUBLIC_TAB_OBSERVER_H_
- #include <string>
- class GURL;
- namespace weblayer {
- class TabObserver {
- public:
- // The URL bar should be updated to |url|.
- virtual void DisplayedUrlChanged(const GURL& url) {}
- // Triggered when the render process dies, either due to crash or killed by
- // the system to reclaim memory.
- virtual void OnRenderProcessGone() {}
- // Called when the title of this tab changes. Note before the page sets a
- // title, the title may be a portion of the Uri.
- virtual void OnTitleUpdated(const std::u16string& title) {}
- protected:
- virtual ~TabObserver() {}
- };
- } // namespace weblayer
- #endif // WEBLAYER_PUBLIC_TAB_OBSERVER_H_
|