| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 | 233 |
| 234 void SetWebappManifestScope( | 234 void SetWebappManifestScope( |
| 235 JNIEnv* env, | 235 JNIEnv* env, |
| 236 const base::android::JavaParamRef<jobject>& obj, | 236 const base::android::JavaParamRef<jobject>& obj, |
| 237 const base::android::JavaParamRef<jstring>& scope); | 237 const base::android::JavaParamRef<jstring>& scope); |
| 238 | 238 |
| 239 const std::string& GetWebappManifestScope() const { | 239 const std::string& GetWebappManifestScope() const { |
| 240 return webapp_manifest_scope_; | 240 return webapp_manifest_scope_; |
| 241 } | 241 } |
| 242 | 242 |
| 243 void EnableEmbeddedMediaExperience( |
| 244 JNIEnv* env, |
| 245 const base::android::JavaParamRef<jobject>& obj, |
| 246 jboolean enabled); |
| 247 |
| 248 bool ShouldEnableEmbeddedMediaExperience() const; |
| 249 |
| 243 // Register the Tab's native methods through JNI. | 250 // Register the Tab's native methods through JNI. |
| 244 static bool RegisterTabAndroid(JNIEnv* env); | 251 static bool RegisterTabAndroid(JNIEnv* env); |
| 245 | 252 |
| 246 private: | 253 private: |
| 247 prerender::PrerenderManager* GetPrerenderManager() const; | 254 prerender::PrerenderManager* GetPrerenderManager() const; |
| 248 | 255 |
| 249 JavaObjectWeakGlobalRef weak_java_tab_; | 256 JavaObjectWeakGlobalRef weak_java_tab_; |
| 250 | 257 |
| 251 // The identifier used by session restore for this tab. | 258 // The identifier used by session restore for this tab. |
| 252 SessionID session_tab_id_; | 259 SessionID session_tab_id_; |
| 253 | 260 |
| 254 // Identifier of the window the tab is in. | 261 // Identifier of the window the tab is in. |
| 255 SessionID session_window_id_; | 262 SessionID session_window_id_; |
| 256 | 263 |
| 257 content::NotificationRegistrar notification_registrar_; | 264 content::NotificationRegistrar notification_registrar_; |
| 258 | 265 |
| 259 scoped_refptr<cc::Layer> content_layer_; | 266 scoped_refptr<cc::Layer> content_layer_; |
| 260 android::TabContentManager* tab_content_manager_; | 267 android::TabContentManager* tab_content_manager_; |
| 261 | 268 |
| 262 std::unique_ptr<content::WebContents> web_contents_; | 269 std::unique_ptr<content::WebContents> web_contents_; |
| 263 std::unique_ptr<android::TabWebContentsDelegateAndroid> | 270 std::unique_ptr<android::TabWebContentsDelegateAndroid> |
| 264 web_contents_delegate_; | 271 web_contents_delegate_; |
| 265 | 272 |
| 266 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 273 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
| 267 | 274 |
| 268 std::string webapp_manifest_scope_; | 275 std::string webapp_manifest_scope_; |
| 276 bool embedded_media_experience_enabled_; |
| 269 | 277 |
| 270 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 278 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
| 271 }; | 279 }; |
| 272 | 280 |
| 273 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 281 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
| OLD | NEW |