| 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_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/sessions/session_id.h" | 10 #include "chrome/browser/sessions/session_id.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 // Method from TabContents. | 26 // Method from TabContents. |
| 27 | 27 |
| 28 virtual SessionID::id_type GetWindowId() const = 0; | 28 virtual SessionID::id_type GetWindowId() const = 0; |
| 29 virtual SessionID::id_type GetSessionId() const = 0; | 29 virtual SessionID::id_type GetSessionId() const = 0; |
| 30 virtual bool IsBeingDestroyed() const = 0; | 30 virtual bool IsBeingDestroyed() const = 0; |
| 31 virtual Profile* profile() const = 0; | 31 virtual Profile* profile() const = 0; |
| 32 | 32 |
| 33 // Method derived from TabContents. | 33 // Method derived from TabContents. |
| 34 | 34 |
| 35 virtual bool HasExtensionAppId() const = 0; | 35 virtual std::string GetExtensionAppId() const = 0; |
| 36 virtual const std::string& GetExtensionAppId() const = 0; | |
| 37 | 36 |
| 38 // Method from NavigationController | 37 // Method from NavigationController |
| 39 | 38 |
| 40 virtual int GetCurrentEntryIndex() const = 0; | 39 virtual int GetCurrentEntryIndex() const = 0; |
| 41 virtual int GetEntryCount() const = 0; | 40 virtual int GetEntryCount() const = 0; |
| 42 virtual int GetPendingEntryIndex() const = 0; | 41 virtual int GetPendingEntryIndex() const = 0; |
| 43 virtual content::NavigationEntry* GetPendingEntry() const = 0; | 42 virtual content::NavigationEntry* GetPendingEntry() const = 0; |
| 44 virtual content::NavigationEntry* GetEntryAtIndex(int i) const = 0; | 43 virtual content::NavigationEntry* GetEntryAtIndex(int i) const = 0; |
| 45 virtual content::NavigationEntry* GetActiveEntry() const = 0; | 44 virtual content::NavigationEntry* GetActiveEntry() const = 0; |
| 45 |
| 46 virtual bool IsPinned() const = 0; |
| 46 }; | 47 }; |
| 47 | 48 |
| 48 } // namespace browser_sync | 49 } // namespace browser_sync |
| 49 | 50 |
| 50 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__ | 51 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__ |
| OLD | NEW |