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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 56 |
| 57 // Session sync related methods. |
| 58 virtual int64 GetSyncId() const = 0; |
| 59 virtual void SetSyncId(int64 sync_id) = 0; |
57 // Returns the SyncedTabDelegate associated with WebContents. | 60 // Returns the SyncedTabDelegate associated with WebContents. |
58 static SyncedTabDelegate* ImplFromWebContents( | 61 static SyncedTabDelegate* ImplFromWebContents( |
59 content::WebContents* web_contents); | 62 content::WebContents* web_contents); |
60 }; | 63 }; |
61 | 64 |
62 } // namespace browser_sync | 65 } // namespace browser_sync |
63 | 66 |
64 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__ | 67 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_H__ |
OLD | NEW |