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

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

Issue 143463012: Pass rendering state on swapping in a prerendered page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dev
Patch Set: sync Created 6 years, 10 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 9
10 #include "base/android/jni_helper.h" 10 #include "base/android/jni_helper.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 virtual bool ShouldWelcomePageLinkToTermsOfService(); 105 virtual bool ShouldWelcomePageLinkToTermsOfService();
106 106
107 static void InitTabHelpers(content::WebContents* web_contents); 107 static void InitTabHelpers(content::WebContents* web_contents);
108 108
109 // Register the Tab's native methods through JNI. 109 // Register the Tab's native methods through JNI.
110 static bool RegisterTabAndroid(JNIEnv* env); 110 static bool RegisterTabAndroid(JNIEnv* env);
111 111
112 // CoreTabHelperDelegate ---------------------------------------------------- 112 // CoreTabHelperDelegate ----------------------------------------------------
113 113
114 virtual void SwapTabContents(content::WebContents* old_contents, 114 virtual void SwapTabContents(content::WebContents* old_contents,
115 content::WebContents* new_contents) OVERRIDE; 115 content::WebContents* new_contents,
116 bool did_start_load,
117 bool did_finish_load) OVERRIDE;
116 118
117 // NotificationObserver ----------------------------------------------------- 119 // NotificationObserver -----------------------------------------------------
118 virtual void Observe(int type, 120 virtual void Observe(int type,
119 const content::NotificationSource& source, 121 const content::NotificationSource& source,
120 const content::NotificationDetails& details) OVERRIDE; 122 const content::NotificationDetails& details) OVERRIDE;
121 123
122 // Methods called from Java via JNI ----------------------------------------- 124 // Methods called from Java via JNI -----------------------------------------
123 125
124 virtual void Destroy(JNIEnv* env, jobject obj); 126 virtual void Destroy(JNIEnv* env, jobject obj);
125 virtual void InitWebContents(JNIEnv* env, 127 virtual void InitWebContents(JNIEnv* env,
(...skipping 26 matching lines...) Expand all
152 scoped_ptr<content::WebContents> web_contents_; 154 scoped_ptr<content::WebContents> web_contents_;
153 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> 155 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid>
154 web_contents_delegate_; 156 web_contents_delegate_;
155 157
156 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; 158 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_;
157 159
158 DISALLOW_COPY_AND_ASSIGN(TabAndroid); 160 DISALLOW_COPY_AND_ASSIGN(TabAndroid);
159 }; 161 };
160 162
161 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ 163 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/TabObserver.java ('k') | chrome/browser/android/tab_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698