virtual int GetTabCount() const = 0;
virtual int GetActiveIndex() const = 0;
virtual content::WebContents* GetWebContentsAt(int index) const = 0;
+ // This will return NULL if the tab has not yet been initialized.
virtual TabAndroid* GetTabAt(int index) const = 0;
virtual void SetActiveIndex(int index) = 0;
protected:
explicit TabModel(Profile* profile);
- virtual ~TabModel();
+ ~TabModel() override;
// Instructs the TabModel to broadcast a notification that all tabs are now
// loaded from storage.
private:
// Determines how TabModel will interact with the profile.
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
+ void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) override;
// The profile associated with this TabModel.
Profile* profile_;