OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_ |
6 #define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_ | 6 #define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 virtual content::WebContents* GetActiveWebContents() const = 0; | 44 virtual content::WebContents* GetActiveWebContents() const = 0; |
45 virtual bool IsTabPinned(int index) const = 0; | 45 virtual bool IsTabPinned(int index) const = 0; |
46 virtual content::WebContents* AddRestoredTab( | 46 virtual content::WebContents* AddRestoredTab( |
47 const std::vector<TabNavigation>& navigations, | 47 const std::vector<TabNavigation>& navigations, |
48 int tab_index, | 48 int tab_index, |
49 int selected_navigation, | 49 int selected_navigation, |
50 const std::string& extension_app_id, | 50 const std::string& extension_app_id, |
51 bool select, | 51 bool select, |
52 bool pin, | 52 bool pin, |
53 bool from_last_session, | 53 bool from_last_session, |
54 content::SessionStorageNamespace* storage_namespace) = 0; | 54 content::SessionStorageNamespace* storage_namespace, |
| 55 const std::string& user_agent_override) = 0; |
55 virtual void ReplaceRestoredTab( | 56 virtual void ReplaceRestoredTab( |
56 const std::vector<TabNavigation>& navigations, | 57 const std::vector<TabNavigation>& navigations, |
57 int selected_navigation, | 58 int selected_navigation, |
58 bool from_last_session, | 59 bool from_last_session, |
59 const std::string& extension_app_id, | 60 const std::string& extension_app_id, |
60 content::SessionStorageNamespace* session_storage_namespace) = 0; | 61 content::SessionStorageNamespace* session_storage_namespace, |
| 62 const std::string& user_agent_override) = 0; |
61 virtual void CloseTab() = 0; | 63 virtual void CloseTab() = 0; |
62 | 64 |
63 // see Browser::Create | 65 // see Browser::Create |
64 static TabRestoreServiceDelegate* Create(Profile* profile, | 66 static TabRestoreServiceDelegate* Create(Profile* profile, |
65 const std::string& app_name); | 67 const std::string& app_name); |
66 | 68 |
67 // see browser::FindBrowserForWebContents | 69 // see browser::FindBrowserForWebContents |
68 static TabRestoreServiceDelegate* FindDelegateForWebContents( | 70 static TabRestoreServiceDelegate* FindDelegateForWebContents( |
69 const content::WebContents* contents); | 71 const content::WebContents* contents); |
70 | 72 |
71 // see browser::FindBrowserWithID | 73 // see browser::FindBrowserWithID |
72 static TabRestoreServiceDelegate* FindDelegateWithID( | 74 static TabRestoreServiceDelegate* FindDelegateWithID( |
73 SessionID::id_type desired_id); | 75 SessionID::id_type desired_id); |
74 | 76 |
75 protected: | 77 protected: |
76 virtual ~TabRestoreServiceDelegate() {} | 78 virtual ~TabRestoreServiceDelegate() {} |
77 }; | 79 }; |
78 | 80 |
79 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_ | 81 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_ |
OLD | NEW |