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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // WebContents. Can return NULL. | 87 // WebContents. Can return NULL. |
88 content::ContentViewCore* GetContentViewCore() const; | 88 content::ContentViewCore* GetContentViewCore() const; |
89 Profile* GetProfile() const; | 89 Profile* GetProfile() const; |
90 browser_sync::SyncedTabDelegate* GetSyncedTabDelegate() const; | 90 browser_sync::SyncedTabDelegate* GetSyncedTabDelegate() const; |
91 | 91 |
92 void SetWindowSessionID(SessionID::id_type window_id); | 92 void SetWindowSessionID(SessionID::id_type window_id); |
93 void SetSyncId(int sync_id); | 93 void SetSyncId(int sync_id); |
94 | 94 |
95 virtual void HandlePopupNavigation(chrome::NavigateParams* params); | 95 virtual void HandlePopupNavigation(chrome::NavigateParams* params); |
96 | 96 |
97 virtual void OnReceivedHttpAuthRequest(jobject auth_handler, | |
98 const base::string16& host, | |
99 const base::string16& realm); | |
100 | |
101 // Called to determine if chrome://welcome should contain links to the terms | 97 // Called to determine if chrome://welcome should contain links to the terms |
102 // of service and the privacy notice. | 98 // of service and the privacy notice. |
103 virtual bool ShouldWelcomePageLinkToTermsOfService(); | 99 virtual bool ShouldWelcomePageLinkToTermsOfService(); |
104 | 100 |
105 bool HasPrerenderedUrl(GURL gurl); | 101 bool HasPrerenderedUrl(GURL gurl); |
106 | 102 |
107 // CoreTabHelperDelegate ---------------------------------------------------- | 103 // CoreTabHelperDelegate ---------------------------------------------------- |
108 | 104 |
109 virtual void SwapTabContents(content::WebContents* old_contents, | 105 virtual void SwapTabContents(content::WebContents* old_contents, |
110 content::WebContents* new_contents, | 106 content::WebContents* new_contents, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 scoped_ptr<content::WebContents> web_contents_; | 163 scoped_ptr<content::WebContents> web_contents_; |
168 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> | 164 scoped_ptr<chrome::android::ChromeWebContentsDelegateAndroid> |
169 web_contents_delegate_; | 165 web_contents_delegate_; |
170 | 166 |
171 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; | 167 scoped_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
172 | 168 |
173 DISALLOW_COPY_AND_ASSIGN(TabAndroid); | 169 DISALLOW_COPY_AND_ASSIGN(TabAndroid); |
174 }; | 170 }; |
175 | 171 |
176 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 172 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
OLD | NEW |