| 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 23 matching lines...) Expand all Loading... |
| 34 virtual int GetTabCount() const = 0; | 34 virtual int GetTabCount() const = 0; |
| 35 | 35 |
| 36 // see Browser::active_index() | 36 // see Browser::active_index() |
| 37 virtual int GetSelectedIndex() const = 0; | 37 virtual int GetSelectedIndex() const = 0; |
| 38 | 38 |
| 39 // see Browser::app_name() | 39 // see Browser::app_name() |
| 40 virtual std::string GetAppName() const = 0; | 40 virtual std::string GetAppName() const = 0; |
| 41 | 41 |
| 42 // see Browser methods with the same names | 42 // see Browser methods with the same names |
| 43 virtual content::WebContents* GetWebContentsAt(int index) const = 0; | 43 virtual content::WebContents* GetWebContentsAt(int index) const = 0; |
| 44 virtual content::WebContents* GetSelectedWebContents() 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) = 0; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 71 | 71 |
| 72 // see browser::FindBrowserWithID | 72 // see browser::FindBrowserWithID |
| 73 static TabRestoreServiceDelegate* FindDelegateWithID( | 73 static TabRestoreServiceDelegate* FindDelegateWithID( |
| 74 SessionID::id_type desired_id); | 74 SessionID::id_type desired_id); |
| 75 | 75 |
| 76 protected: | 76 protected: |
| 77 virtual ~TabRestoreServiceDelegate() {} | 77 virtual ~TabRestoreServiceDelegate() {} |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_ | 80 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_ |
| OLD | NEW |