| 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 | 9 |
| 10 #include "base/android/jni_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // WebContents. Can return NULL. | 89 // WebContents. Can return NULL. |
| 90 content::ContentViewCore* GetContentViewCore() const; | 90 content::ContentViewCore* GetContentViewCore() const; |
| 91 Profile* GetProfile() const; | 91 Profile* GetProfile() const; |
| 92 browser_sync::SyncedTabDelegate* GetSyncedTabDelegate() const; | 92 browser_sync::SyncedTabDelegate* GetSyncedTabDelegate() const; |
| 93 | 93 |
| 94 void SetWindowSessionID(SessionID::id_type window_id); | 94 void SetWindowSessionID(SessionID::id_type window_id); |
| 95 void SetSyncId(int sync_id); | 95 void SetSyncId(int sync_id); |
| 96 | 96 |
| 97 virtual void HandlePopupNavigation(chrome::NavigateParams* params); | 97 virtual void HandlePopupNavigation(chrome::NavigateParams* params); |
| 98 | 98 |
| 99 // Called to determine if chrome://welcome should contain links to the terms | |
| 100 // of service and the privacy notice. | |
| 101 virtual bool ShouldWelcomePageLinkToTermsOfService(); | |
| 102 | |
| 103 bool HasPrerenderedUrl(GURL gurl); | 99 bool HasPrerenderedUrl(GURL gurl); |
| 104 | 100 |
| 105 void MakeLoadURLParams( | 101 void MakeLoadURLParams( |
| 106 chrome::NavigateParams* params, | 102 chrome::NavigateParams* params, |
| 107 content::NavigationController::LoadURLParams* load_url_params); | 103 content::NavigationController::LoadURLParams* load_url_params); |
| 108 | 104 |
| 109 // CoreTabHelperDelegate ---------------------------------------------------- | 105 // CoreTabHelperDelegate ---------------------------------------------------- |
| 110 | 106 |
| 111 virtual void SwapTabContents(content::WebContents* old_contents, | 107 virtual void SwapTabContents(content::WebContents* old_contents, |
| 112 content::WebContents* new_contents, | 108 content::WebContents* new_contents, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 scoped_ptr<content::WebContents> web_contents_; | 172 scoped_ptr<content::WebContents> web_contents_; |
| 177 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> | 173 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> |
| 178 web_contents_delegate_; | 174 web_contents_delegate_; |
| 179 | 175 |
| 180 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 176 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
| 181 | 177 |
| 182 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 178 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
| 183 }; | 179 }; |
| 184 | 180 |
| 185 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 181 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
| OLD | NEW |