// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_VIEWS_SIDE_PANEL_READ_ANYTHING_READ_ANYTHING_COORDINATOR_H_ #define CHROME_BROWSER_UI_VIEWS_SIDE_PANEL_READ_ANYTHING_READ_ANYTHING_COORDINATOR_H_ #include <memory> #include <string> #include "base/observer_list.h" #include "base/observer_list_types.h" #include "base/timer/timer.h" #include "chrome/browser/ui/browser_list_observer.h" #include "chrome/browser/ui/views/side_panel/side_panel_entry_observer.h" #include "content/public/browser/web_contents_observer.h" class Browser; namespace views { class View; } // namespace views /////////////////////////////////////////////////////////////////////////////// // ReadAnythingCoordinator // // A class that coordinates the Read Anything feature. This class registers // itself as a SidePanelEntry. // The coordinator acts as the external-facing API for the Read Anything // feature. Classes outside this feature should make calls to the coordinator. // This class has the same lifetime as the browser. // class ReadAnythingCoordinator : public SidePanelEntryObserver, public BrowserListObserver { … }; #endif // CHROME_BROWSER_UI_VIEWS_SIDE_PANEL_READ_ANYTHING_READ_ANYTHING_COORDINATOR_H_