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 24 matching lines...) Expand all Loading... |
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 content::WebContents* GetWebContents() const OVERRIDE; | 41 virtual content::WebContents* GetWebContents() const OVERRIDE; |
42 virtual int GetSyncId() const OVERRIDE; | 42 virtual int GetSyncId() const OVERRIDE; |
43 virtual void SetSyncId(int sync_id) OVERRIDE; | 43 virtual void SetSyncId(int sync_id) OVERRIDE; |
44 | 44 |
45 // Managed user related methods. | 45 // Supervised user related methods. |
46 | 46 |
47 virtual bool ProfileIsManaged() const OVERRIDE; | 47 virtual bool ProfileIsSupervised() const OVERRIDE; |
48 virtual const std::vector<const content::NavigationEntry*>* | 48 virtual const std::vector<const content::NavigationEntry*>* |
49 GetBlockedNavigations() const OVERRIDE; | 49 GetBlockedNavigations() const OVERRIDE; |
50 | 50 |
51 // Set the web contents for this tab. Also creates | 51 // Set the web contents for this tab. Also creates |
52 // TabContentsSyncedTabDelegate for this tab. | 52 // TabContentsSyncedTabDelegate for this tab. |
53 virtual void SetWebContents(content::WebContents* web_contents); | 53 virtual void SetWebContents(content::WebContents* web_contents); |
54 // Set web contents to null. | 54 // Set web contents to null. |
55 virtual void ResetWebContents(); | 55 virtual void ResetWebContents(); |
56 | 56 |
57 private: | 57 private: |
58 content::WebContents* web_contents_; | 58 content::WebContents* web_contents_; |
59 TabAndroid* tab_android_; | 59 TabAndroid* tab_android_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(SyncedTabDelegateAndroid); | 61 DISALLOW_COPY_AND_ASSIGN(SyncedTabDelegateAndroid); |
62 }; | 62 }; |
63 } // namespace browser_sync | 63 } // namespace browser_sync |
64 | 64 |
65 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_ANDROID_H_ | 65 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_TAB_DELEGATE_ANDROID_H_ |
OLD | NEW |