| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_ |
| 6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 int parent_tab_id) = 0; | 59 int parent_tab_id) = 0; |
| 60 | 60 |
| 61 // Used by Developer Tools to create a new tab with a given URL. | 61 // Used by Developer Tools to create a new tab with a given URL. |
| 62 // Replaces CreateTabForTesting. | 62 // Replaces CreateTabForTesting. |
| 63 virtual content::WebContents* CreateNewTabForDevTools(const GURL& url) = 0; | 63 virtual content::WebContents* CreateNewTabForDevTools(const GURL& url) = 0; |
| 64 | 64 |
| 65 // Return true if we are currently restoring sessions asynchronously. | 65 // Return true if we are currently restoring sessions asynchronously. |
| 66 virtual bool IsSessionRestoreInProgress() const = 0; | 66 virtual bool IsSessionRestoreInProgress() const = 0; |
| 67 | 67 |
| 68 protected: | 68 protected: |
| 69 explicit TabModel(Profile* profile); | 69 explicit TabModel(Profile* profile, bool is_tabbed_activity); |
| 70 ~TabModel() override; | 70 ~TabModel() override; |
| 71 | 71 |
| 72 // Instructs the TabModel to broadcast a notification that all tabs are now | 72 // Instructs the TabModel to broadcast a notification that all tabs are now |
| 73 // loaded from storage. | 73 // loaded from storage. |
| 74 void BroadcastSessionRestoreComplete(); | 74 void BroadcastSessionRestoreComplete(); |
| 75 | 75 |
| 76 ToolbarModel* GetToolbarModel(); | 76 ToolbarModel* GetToolbarModel(); |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 // Determines how TabModel will interact with the profile. | 79 // Determines how TabModel will interact with the profile. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 100 // across sessions. | 100 // across sessions. |
| 101 SessionID session_id_; | 101 SessionID session_id_; |
| 102 | 102 |
| 103 // The Registrar used to register TabModel for notifications. | 103 // The Registrar used to register TabModel for notifications. |
| 104 content::NotificationRegistrar registrar_; | 104 content::NotificationRegistrar registrar_; |
| 105 | 105 |
| 106 DISALLOW_COPY_AND_ASSIGN(TabModel); | 106 DISALLOW_COPY_AND_ASSIGN(TabModel); |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_ | 109 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_H_ |
| OLD | NEW |