| 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 virtual std::string GetExtensionAppId() const = 0; | 37 virtual std::string GetExtensionAppId() const = 0; |
| 38 | 38 |
| 39 // Methods from NavigationController. | 39 // Methods from NavigationController. |
| 40 | 40 |
| 41 virtual int GetCurrentEntryIndex() const = 0; | 41 virtual int GetCurrentEntryIndex() const = 0; |
| 42 virtual int GetEntryCount() const = 0; | 42 virtual int GetEntryCount() const = 0; |
| 43 virtual int GetPendingEntryIndex() const = 0; | 43 virtual int GetPendingEntryIndex() const = 0; |
| 44 virtual content::NavigationEntry* GetPendingEntry() const = 0; | 44 virtual content::NavigationEntry* GetPendingEntry() const = 0; |
| 45 virtual content::NavigationEntry* GetEntryAtIndex(int i) const = 0; | 45 virtual content::NavigationEntry* GetEntryAtIndex(int i) const = 0; |
| 46 virtual content::NavigationEntry* GetActiveEntry() const = 0; | 46 virtual content::NavigationEntry* GetVisibleEntry() const = 0; |
| 47 | 47 |
| 48 // Managed user related methods. | 48 // Managed user related methods. |
| 49 | 49 |
| 50 virtual bool ProfileIsManaged() const = 0; | 50 virtual bool ProfileIsManaged() const = 0; |
| 51 virtual const std::vector<const content::NavigationEntry*>* | 51 virtual const std::vector<const content::NavigationEntry*>* |
| 52 GetBlockedNavigations() const = 0; | 52 GetBlockedNavigations() const = 0; |
| 53 | 53 |
| 54 virtual bool IsPinned() const = 0; | 54 virtual bool IsPinned() const = 0; |
| 55 virtual bool HasWebContents() const = 0; | 55 virtual bool HasWebContents() const = 0; |
| 56 virtual content::WebContents* GetWebContents() const = 0; | 56 virtual content::WebContents* GetWebContents() const = 0; |
| 57 | 57 |
| 58 // Session sync related methods. | 58 // Session sync related methods. |
| 59 virtual int GetSyncId() const = 0; | 59 virtual int GetSyncId() const = 0; |
| 60 virtual void SetSyncId(int sync_id) = 0; | 60 virtual void SetSyncId(int sync_id) = 0; |
| 61 // Returns the SyncedTabDelegate associated with WebContents. | 61 // Returns the SyncedTabDelegate associated with WebContents. |
| 62 static SyncedTabDelegate* ImplFromWebContents( | 62 static SyncedTabDelegate* ImplFromWebContents( |
| 63 content::WebContents* web_contents); | 63 content::WebContents* web_contents); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace browser_sync | 66 } // namespace browser_sync |
| 67 | 67 |
| 68 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__ | 68 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__ |
| OLD | NEW |