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_ANDROID_TAB_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
6 #define CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 // Return the tab url. | 119 // Return the tab url. |
120 GURL GetURL() const; | 120 GURL GetURL() const; |
121 | 121 |
122 // Load the tab if it was unloaded from memory. | 122 // Load the tab if it was unloaded from memory. |
123 bool LoadIfNeeded(); | 123 bool LoadIfNeeded(); |
124 | 124 |
125 // Helper methods to make it easier to access objects from the associated | 125 // Helper methods to make it easier to access objects from the associated |
126 // WebContents. Can return NULL. | 126 // WebContents. Can return NULL. |
127 Profile* GetProfile() const; | 127 Profile* GetProfile() const; |
128 browser_sync::SyncedTabDelegate* GetSyncedTabDelegate() const; | 128 sync_sessions::SyncedTabDelegate* GetSyncedTabDelegate() const; |
129 | 129 |
130 void SetWindowSessionID(SessionID::id_type window_id); | 130 void SetWindowSessionID(SessionID::id_type window_id); |
131 void SetSyncId(int sync_id); | 131 void SetSyncId(int sync_id); |
132 | 132 |
133 void HandlePopupNavigation(chrome::NavigateParams* params); | 133 void HandlePopupNavigation(chrome::NavigateParams* params); |
134 | 134 |
135 bool HasPrerenderedUrl(GURL gurl); | 135 bool HasPrerenderedUrl(GURL gurl); |
136 | 136 |
137 void ShowOfflinePages(); | 137 void ShowOfflinePages(); |
138 | 138 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 web_contents_delegate_; | 296 web_contents_delegate_; |
297 | 297 |
298 std::unique_ptr<blimp::client::BlimpContents> blimp_contents_; | 298 std::unique_ptr<blimp::client::BlimpContents> blimp_contents_; |
299 | 299 |
300 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 300 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
301 | 301 |
302 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 302 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
303 }; | 303 }; |
304 | 304 |
305 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 305 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
OLD | NEW |