Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / android / tab_model / tab_model.h
index 88bdc96..0125f97 100644 (file)
@@ -38,6 +38,7 @@ class TabModel : public content::NotificationObserver {
   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;
@@ -56,7 +57,7 @@ class TabModel : public content::NotificationObserver {
 
  protected:
   explicit TabModel(Profile* profile);
-  virtual ~TabModel();
+  ~TabModel() override;
 
   // Instructs the TabModel to broadcast a notification that all tabs are now
   // loaded from storage.
@@ -66,9 +67,9 @@ class TabModel : public content::NotificationObserver {
 
  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_;