OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_ANDROID_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_ANDROID_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_ANDROID_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/sync/glue/synced_tab_delegate.h" | 9 #include "chrome/browser/sync/glue/synced_tab_delegate.h" |
10 #include "content/public/browser/web_contents_user_data.h" | 10 #include "content/public/browser/web_contents_user_data.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 virtual Profile* profile() const OVERRIDE; | 31 virtual Profile* profile() const OVERRIDE; |
32 virtual std::string GetExtensionAppId() const OVERRIDE; | 32 virtual std::string GetExtensionAppId() const OVERRIDE; |
33 virtual int GetCurrentEntryIndex() const OVERRIDE; | 33 virtual int GetCurrentEntryIndex() const OVERRIDE; |
34 virtual int GetEntryCount() const OVERRIDE; | 34 virtual int GetEntryCount() const OVERRIDE; |
35 virtual int GetPendingEntryIndex() const OVERRIDE; | 35 virtual int GetPendingEntryIndex() const OVERRIDE; |
36 virtual content::NavigationEntry* GetPendingEntry() const OVERRIDE; | 36 virtual content::NavigationEntry* GetPendingEntry() const OVERRIDE; |
37 virtual content::NavigationEntry* GetEntryAtIndex(int i) const OVERRIDE; | 37 virtual content::NavigationEntry* GetEntryAtIndex(int i) const OVERRIDE; |
38 virtual content::NavigationEntry* GetActiveEntry() const OVERRIDE; | 38 virtual content::NavigationEntry* GetActiveEntry() const OVERRIDE; |
39 virtual bool IsPinned() const OVERRIDE; | 39 virtual bool IsPinned() const OVERRIDE; |
40 virtual bool HasWebContents() const OVERRIDE; | 40 virtual bool HasWebContents() const OVERRIDE; |
| 41 virtual int64 GetSyncId() const OVERRIDE; |
| 42 virtual void SetSyncId(int64 sync_id) OVERRIDE; |
41 | 43 |
42 // Managed user related methods. | 44 // Managed user related methods. |
43 | 45 |
44 virtual bool ProfileIsManaged() const OVERRIDE; | 46 virtual bool ProfileIsManaged() const OVERRIDE; |
45 virtual const std::vector<const content::NavigationEntry*>* | 47 virtual const std::vector<const content::NavigationEntry*>* |
46 GetBlockedNavigations() const OVERRIDE; | 48 GetBlockedNavigations() const OVERRIDE; |
47 | 49 |
48 // Set the web contents for this tab. Also creates | 50 // Set the web contents for this tab. Also creates |
49 // TabContentsSyncedTabDelegate for this tab. | 51 // TabContentsSyncedTabDelegate for this tab. |
50 virtual void SetWebContents(content::WebContents* web_contents); | 52 virtual void SetWebContents(content::WebContents* web_contents); |
51 // Set web contents to null. | 53 // Set web contents to null. |
52 virtual void ResetWebContents(); | 54 virtual void ResetWebContents(); |
53 | 55 |
54 private: | 56 private: |
55 content::WebContents* web_contents_; | 57 content::WebContents* web_contents_; |
56 TabAndroid* tab_android_; | 58 TabAndroid* tab_android_; |
57 | 59 |
58 DISALLOW_COPY_AND_ASSIGN(SyncedTabDelegateAndroid); | 60 DISALLOW_COPY_AND_ASSIGN(SyncedTabDelegateAndroid); |
59 }; | 61 }; |
60 } // namespace browser_sync | 62 } // namespace browser_sync |
61 | 63 |
62 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_ANDROID_H_ | 64 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_ANDROID_H_ |
OLD | NEW |