Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Side by Side Diff: chrome/browser/sync/glue/synced_tab_delegate_android.h

Issue 885283009: Update {virtual,override,final} to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 11
12 namespace content { 12 namespace content {
13 class WebContents; 13 class WebContents;
14 } 14 }
15 15
16 class TabAndroid; 16 class TabAndroid;
17 namespace browser_sync { 17 namespace browser_sync {
18 // On Android a tab can exist even without web contents. 18 // On Android a tab can exist even without web contents.
19 19
20 // SyncedTabDelegateAndroid wraps TabContentsSyncedTabDelegate and provides 20 // SyncedTabDelegateAndroid wraps TabContentsSyncedTabDelegate and provides
21 // a method to set web contents later when tab is brought to memory. 21 // a method to set web contents later when tab is brought to memory.
22 class SyncedTabDelegateAndroid : public browser_sync::SyncedTabDelegate { 22 class SyncedTabDelegateAndroid : public browser_sync::SyncedTabDelegate {
23 public: 23 public:
24 explicit SyncedTabDelegateAndroid(TabAndroid* owning_tab_); 24 explicit SyncedTabDelegateAndroid(TabAndroid* owning_tab_);
25 virtual ~SyncedTabDelegateAndroid(); 25 ~SyncedTabDelegateAndroid() override;
26 26
27 // Methods from SyncedTabDelegate. 27 // Methods from SyncedTabDelegate.
28 virtual SessionID::id_type GetWindowId() const override; 28 SessionID::id_type GetWindowId() const override;
29 virtual SessionID::id_type GetSessionId() const override; 29 SessionID::id_type GetSessionId() const override;
30 virtual bool IsBeingDestroyed() const override; 30 bool IsBeingDestroyed() const override;
31 virtual Profile* profile() const override; 31 Profile* profile() const override;
32 virtual std::string GetExtensionAppId() const override; 32 std::string GetExtensionAppId() const override;
33 virtual int GetCurrentEntryIndex() const override; 33 int GetCurrentEntryIndex() const override;
34 virtual int GetEntryCount() const override; 34 int GetEntryCount() const override;
35 virtual int GetPendingEntryIndex() const override; 35 int GetPendingEntryIndex() const override;
36 virtual content::NavigationEntry* GetPendingEntry() const override; 36 content::NavigationEntry* GetPendingEntry() const override;
37 virtual content::NavigationEntry* GetEntryAtIndex(int i) const override; 37 content::NavigationEntry* GetEntryAtIndex(int i) const override;
38 virtual content::NavigationEntry* GetActiveEntry() const override; 38 content::NavigationEntry* GetActiveEntry() const override;
39 virtual bool IsPinned() const override; 39 bool IsPinned() const override;
40 virtual bool HasWebContents() const override; 40 bool HasWebContents() const override;
41 virtual content::WebContents* GetWebContents() const override; 41 content::WebContents* GetWebContents() const override;
42 virtual int GetSyncId() const override; 42 int GetSyncId() const override;
43 virtual void SetSyncId(int sync_id) override; 43 void SetSyncId(int sync_id) override;
44 44
45 // Supervised user related methods. 45 // Supervised user related methods.
46 46
47 virtual bool ProfileIsSupervised() const override; 47 bool ProfileIsSupervised() const override;
48 virtual const std::vector<const content::NavigationEntry*>* 48 const std::vector<const content::NavigationEntry*>* GetBlockedNavigations()
49 GetBlockedNavigations() const override; 49 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_
OLDNEW
« no previous file with comments | « chrome/browser/speech/tts_android.h ('k') | chrome/browser/sync/glue/synced_window_delegate_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698