| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 Profile* GetProfile() const; | 110 Profile* GetProfile() const; |
| 111 sync_sessions::SyncedTabDelegate* GetSyncedTabDelegate() const; | 111 sync_sessions::SyncedTabDelegate* GetSyncedTabDelegate() const; |
| 112 | 112 |
| 113 void SetWindowSessionID(SessionID::id_type window_id); | 113 void SetWindowSessionID(SessionID::id_type window_id); |
| 114 void SetSyncId(int sync_id); | 114 void SetSyncId(int sync_id); |
| 115 | 115 |
| 116 void HandlePopupNavigation(chrome::NavigateParams* params); | 116 void HandlePopupNavigation(chrome::NavigateParams* params); |
| 117 | 117 |
| 118 bool HasPrerenderedUrl(GURL gurl); | 118 bool HasPrerenderedUrl(GURL gurl); |
| 119 | 119 |
| 120 void ShowOfflinePages(); | |
| 121 | |
| 122 // Overridden from CoreTabHelperDelegate: | 120 // Overridden from CoreTabHelperDelegate: |
| 123 void SwapTabContents(content::WebContents* old_contents, | 121 void SwapTabContents(content::WebContents* old_contents, |
| 124 content::WebContents* new_contents, | 122 content::WebContents* new_contents, |
| 125 bool did_start_load, | 123 bool did_start_load, |
| 126 bool did_finish_load) override; | 124 bool did_finish_load) override; |
| 127 | 125 |
| 128 // Overridden from NotificationObserver: | 126 // Overridden from NotificationObserver: |
| 129 void Observe(int type, | 127 void Observe(int type, |
| 130 const content::NotificationSource& source, | 128 const content::NotificationSource& source, |
| 131 const content::NotificationDetails& details) override; | 129 const content::NotificationDetails& details) override; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 jint current, | 203 jint current, |
| 206 jboolean animate); | 204 jboolean animate); |
| 207 | 205 |
| 208 void LoadOriginalImage(JNIEnv* env, | 206 void LoadOriginalImage(JNIEnv* env, |
| 209 const base::android::JavaParamRef<jobject>& obj); | 207 const base::android::JavaParamRef<jobject>& obj); |
| 210 | 208 |
| 211 jlong GetBookmarkId(JNIEnv* env, | 209 jlong GetBookmarkId(JNIEnv* env, |
| 212 const base::android::JavaParamRef<jobject>& obj, | 210 const base::android::JavaParamRef<jobject>& obj, |
| 213 jboolean only_editable); | 211 jboolean only_editable); |
| 214 | 212 |
| 215 jboolean HasOfflineCopy(JNIEnv* env, | |
| 216 const base::android::JavaParamRef<jobject>& obj); | |
| 217 | |
| 218 jboolean IsOfflinePage(JNIEnv* env, | |
| 219 const base::android::JavaParamRef<jobject>& obj); | |
| 220 | |
| 221 base::android::ScopedJavaLocalRef<jobject> GetOfflinePage( | |
| 222 JNIEnv* env, | |
| 223 const base::android::JavaParamRef<jobject>& obj); | |
| 224 | |
| 225 void SetInterceptNavigationDelegate( | 213 void SetInterceptNavigationDelegate( |
| 226 JNIEnv* env, | 214 JNIEnv* env, |
| 227 const base::android::JavaParamRef<jobject>& obj, | 215 const base::android::JavaParamRef<jobject>& obj, |
| 228 const base::android::JavaParamRef<jobject>& delegate); | 216 const base::android::JavaParamRef<jobject>& delegate); |
| 229 | 217 |
| 230 // TODO(dtrainor): Remove this, pull content_layer() on demand. | 218 // TODO(dtrainor): Remove this, pull content_layer() on demand. |
| 231 void AttachToTabContentManager( | 219 void AttachToTabContentManager( |
| 232 JNIEnv* env, | 220 JNIEnv* env, |
| 233 const base::android::JavaParamRef<jobject>& obj, | 221 const base::android::JavaParamRef<jobject>& obj, |
| 234 const base::android::JavaParamRef<jobject>& jtab_content_manager); | 222 const base::android::JavaParamRef<jobject>& jtab_content_manager); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 scoped_refptr<content::DevToolsAgentHost> devtools_host_; | 270 scoped_refptr<content::DevToolsAgentHost> devtools_host_; |
| 283 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 271 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
| 284 | 272 |
| 285 std::string webapp_manifest_scope_; | 273 std::string webapp_manifest_scope_; |
| 286 bool embedded_media_experience_enabled_; | 274 bool embedded_media_experience_enabled_; |
| 287 | 275 |
| 288 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 276 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
| 289 }; | 277 }; |
| 290 | 278 |
| 291 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 279 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
| OLD | NEW |