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

Side by Side Diff: chrome/browser/android/tab_android.h

Issue 2833213002: DevTools: retain DTAH in all the targets to match their life time. (Closed)
Patch Set: cast test Created 3 years, 8 months 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_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 23 matching lines...) Expand all
34 namespace chrome { 34 namespace chrome {
35 struct NavigateParams; 35 struct NavigateParams;
36 } 36 }
37 37
38 namespace android { 38 namespace android {
39 class TabWebContentsDelegateAndroid; 39 class TabWebContentsDelegateAndroid;
40 class TabContentManager; 40 class TabContentManager;
41 } 41 }
42 42
43 namespace content { 43 namespace content {
44 class DevToolsAgentHost;
44 class WebContents; 45 class WebContents;
45 } 46 }
46 47
47 namespace prerender { 48 namespace prerender {
48 class PrerenderManager; 49 class PrerenderManager;
49 } 50 }
50 51
51 class TabAndroid : public CoreTabHelperDelegate, 52 class TabAndroid : public CoreTabHelperDelegate,
52 public content::NotificationObserver, 53 public content::NotificationObserver,
53 public favicon::FaviconDriverObserver { 54 public favicon::FaviconDriverObserver {
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 return webapp_manifest_scope_; 246 return webapp_manifest_scope_;
246 } 247 }
247 248
248 void EnableEmbeddedMediaExperience( 249 void EnableEmbeddedMediaExperience(
249 JNIEnv* env, 250 JNIEnv* env,
250 const base::android::JavaParamRef<jobject>& obj, 251 const base::android::JavaParamRef<jobject>& obj,
251 jboolean enabled); 252 jboolean enabled);
252 253
253 bool ShouldEnableEmbeddedMediaExperience() const; 254 bool ShouldEnableEmbeddedMediaExperience() const;
254 255
256 scoped_refptr<content::DevToolsAgentHost> GetDevToolsAgentHost();
257
258 void SetDevToolsAgentHost(scoped_refptr<content::DevToolsAgentHost> host);
259
255 // Register the Tab's native methods through JNI. 260 // Register the Tab's native methods through JNI.
256 static bool RegisterTabAndroid(JNIEnv* env); 261 static bool RegisterTabAndroid(JNIEnv* env);
257 262
258 private: 263 private:
259 prerender::PrerenderManager* GetPrerenderManager() const; 264 prerender::PrerenderManager* GetPrerenderManager() const;
260 265
261 JavaObjectWeakGlobalRef weak_java_tab_; 266 JavaObjectWeakGlobalRef weak_java_tab_;
262 267
263 // The identifier used by session restore for this tab. 268 // The identifier used by session restore for this tab.
264 SessionID session_tab_id_; 269 SessionID session_tab_id_;
265 270
266 // Identifier of the window the tab is in. 271 // Identifier of the window the tab is in.
267 SessionID session_window_id_; 272 SessionID session_window_id_;
268 273
269 content::NotificationRegistrar notification_registrar_; 274 content::NotificationRegistrar notification_registrar_;
270 275
271 scoped_refptr<cc::Layer> content_layer_; 276 scoped_refptr<cc::Layer> content_layer_;
272 android::TabContentManager* tab_content_manager_; 277 android::TabContentManager* tab_content_manager_;
273 278
274 std::unique_ptr<content::WebContents> web_contents_; 279 std::unique_ptr<content::WebContents> web_contents_;
275 std::unique_ptr<android::TabWebContentsDelegateAndroid> 280 std::unique_ptr<android::TabWebContentsDelegateAndroid>
276 web_contents_delegate_; 281 web_contents_delegate_;
277 282 scoped_refptr<content::DevToolsAgentHost> devtools_host_;
278 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; 283 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_;
279 284
280 std::string webapp_manifest_scope_; 285 std::string webapp_manifest_scope_;
281 bool embedded_media_experience_enabled_; 286 bool embedded_media_experience_enabled_;
282 287
283 DISALLOW_COPY_AND_ASSIGN(TabAndroid); 288 DISALLOW_COPY_AND_ASSIGN(TabAndroid);
284 }; 289 };
285 290
286 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ 291 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/devtools_manager_delegate_android.cc ('k') | chrome/browser/android/tab_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698