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

Side by Side Diff: chrome/browser/ui/android/tab_model/tab_model.h

Issue 2479683006: [Sync] Add support for identifying tabbed activites (Closed)
Patch Set: Self review Created 4 years, 1 month 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 (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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/synced_window_delegate_android.cc ('k') | chrome/browser/ui/android/tab_model/tab_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698