Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors |
[email protected] | fb7da413 | 2011-03-15 15:51:00 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
blundell | bde024d | 2015-09-30 13:47:07 | [diff] [blame] | 5 | #ifndef CHROME_BROWSER_UI_BROWSER_LIVE_TAB_CONTEXT_H_ |
6 | #define CHROME_BROWSER_UI_BROWSER_LIVE_TAB_CONTEXT_H_ | ||||
[email protected] | fb7da413 | 2011-03-15 15:51:00 | [diff] [blame] | 7 | |
Roman Arora | fa79458 | 2021-11-12 00:42:37 | [diff] [blame] | 8 | #include <map> |
[email protected] | fb7da413 | 2011-03-15 15:51:00 | [diff] [blame] | 9 | #include <string> |
10 | #include <vector> | ||||
11 | |||||
Keishi Hattori | 0e45c02 | 2021-11-27 09:25:52 | [diff] [blame] | 12 | #include "base/memory/raw_ptr.h" |
blundell | bde024d | 2015-09-30 13:47:07 | [diff] [blame] | 13 | #include "components/sessions/core/live_tab_context.h" |
Connie Wan | 866179b | 2019-12-18 21:39:33 | [diff] [blame] | 14 | #include "components/tab_groups/tab_group_id.h" |
15 | #include "components/tab_groups/tab_group_visual_data.h" | ||||
chrisha | b1ba090f | 2017-08-18 22:00:50 | [diff] [blame] | 16 | #include "ui/base/ui_base_types.h" |
[email protected] | fb7da413 | 2011-03-15 15:51:00 | [diff] [blame] | 17 | |
18 | class Browser; | ||||
blundell | 7bf49a3d | 2015-09-14 18:38:11 | [diff] [blame] | 19 | class Profile; |
[email protected] | fb7da413 | 2011-03-15 15:51:00 | [diff] [blame] | 20 | |
dljames | a0499b6 | 2024-03-26 21:49:30 | [diff] [blame] | 21 | namespace base { |
22 | class Uuid; | ||||
23 | } | ||||
24 | |||||
blundell | 80c5b2a0 | 2015-09-17 18:22:12 | [diff] [blame] | 25 | namespace content { |
26 | class WebContents; | ||||
27 | } | ||||
28 | |||||
chrisha | b1ba090f | 2017-08-18 22:00:50 | [diff] [blame] | 29 | namespace gfx { |
30 | class Rect; | ||||
31 | } | ||||
32 | |||||
blundell | bde024d | 2015-09-30 13:47:07 | [diff] [blame] | 33 | // Implementation of LiveTabContext which uses an instance of |
[email protected] | fb7da413 | 2011-03-15 15:51:00 | [diff] [blame] | 34 | // Browser in order to fulfil its duties. |
blundell | bde024d | 2015-09-30 13:47:07 | [diff] [blame] | 35 | class BrowserLiveTabContext : public sessions::LiveTabContext { |
[email protected] | fb7da413 | 2011-03-15 15:51:00 | [diff] [blame] | 36 | public: |
blundell | bde024d | 2015-09-30 13:47:07 | [diff] [blame] | 37 | explicit BrowserLiveTabContext(Browser* browser) : browser_(browser) {} |
Peter Boström | 53c6c595 | 2021-09-17 09:41:26 | [diff] [blame] | 38 | |
39 | BrowserLiveTabContext(const BrowserLiveTabContext&) = delete; | ||||
40 | BrowserLiveTabContext& operator=(const BrowserLiveTabContext&) = delete; | ||||
41 | |||||
blundell | bde024d | 2015-09-30 13:47:07 | [diff] [blame] | 42 | ~BrowserLiveTabContext() override {} |
[email protected] | fb7da413 | 2011-03-15 15:51:00 | [diff] [blame] | 43 | |
blundell | bde024d | 2015-09-30 13:47:07 | [diff] [blame] | 44 | // Overridden from LiveTabContext: |
dcheng | 5dd5ff6 | 2014-10-21 12:42:38 | [diff] [blame] | 45 | void ShowBrowserWindow() override; |
Mikel Astiz | e023c57 | 2018-03-28 07:56:56 | [diff] [blame] | 46 | SessionID GetSessionID() const override; |
Joel Hockey | 38c3389 | 2022-06-09 01:51:19 | [diff] [ |