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 #include "chrome/browser/android/tab_android.h" | 5 #include "chrome/browser/android/tab_android.h" |
6 | 6 |
7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
8 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 8 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
9 #include "chrome/browser/extensions/tab_helper.h" | 9 #include "chrome/browser/extensions/tab_helper.h" |
10 #include "chrome/browser/favicon/favicon_tab_helper.h" | 10 #include "chrome/browser/favicon/favicon_tab_helper.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // SessionTabHelper comes first because it sets up the tab ID, and other | 58 // SessionTabHelper comes first because it sets up the tab ID, and other |
59 // helpers may rely on that. | 59 // helpers may rely on that. |
60 SessionTabHelper::CreateForWebContents(contents); | 60 SessionTabHelper::CreateForWebContents(contents); |
61 | 61 |
62 AlternateErrorPageTabObserver::CreateForWebContents(contents); | 62 AlternateErrorPageTabObserver::CreateForWebContents(contents); |
63 autofill::TabAutofillManagerDelegate::CreateForWebContents(contents); | 63 autofill::TabAutofillManagerDelegate::CreateForWebContents(contents); |
64 autofill::AutofillDriverImpl::CreateForWebContentsAndDelegate( | 64 autofill::AutofillDriverImpl::CreateForWebContentsAndDelegate( |
65 contents, | 65 contents, |
66 autofill::TabAutofillManagerDelegate::FromWebContents(contents), | 66 autofill::TabAutofillManagerDelegate::FromWebContents(contents), |
67 g_browser_process->GetApplicationLocale(), | 67 g_browser_process->GetApplicationLocale(), |
68 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER, | 68 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER); |
69 true); | |
70 BlockedContentTabHelper::CreateForWebContents(contents); | 69 BlockedContentTabHelper::CreateForWebContents(contents); |
71 BookmarkTabHelper::CreateForWebContents(contents); | 70 BookmarkTabHelper::CreateForWebContents(contents); |
72 CoreTabHelper::CreateForWebContents(contents); | 71 CoreTabHelper::CreateForWebContents(contents); |
73 extensions::TabHelper::CreateForWebContents(contents); | 72 extensions::TabHelper::CreateForWebContents(contents); |
74 FaviconTabHelper::CreateForWebContents(contents); | 73 FaviconTabHelper::CreateForWebContents(contents); |
75 FindTabHelper::CreateForWebContents(contents); | 74 FindTabHelper::CreateForWebContents(contents); |
76 HistoryTabHelper::CreateForWebContents(contents); | 75 HistoryTabHelper::CreateForWebContents(contents); |
77 InfoBarService::CreateForWebContents(contents); | 76 InfoBarService::CreateForWebContents(contents); |
78 PasswordManagerDelegateImpl::CreateForWebContents(contents); | 77 PasswordManagerDelegateImpl::CreateForWebContents(contents); |
79 PasswordManager::CreateForWebContentsAndDelegate( | 78 PasswordManager::CreateForWebContentsAndDelegate( |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 ToolbarModel::SecurityLevel TabAndroid::GetSecurityLevel() { | 126 ToolbarModel::SecurityLevel TabAndroid::GetSecurityLevel() { |
128 return ToolbarModelImpl::GetSecurityLevelForWebContents(GetWebContents()); | 127 return ToolbarModelImpl::GetSecurityLevelForWebContents(GetWebContents()); |
129 } | 128 } |
130 | 129 |
131 void TabAndroid::RunExternalProtocolDialog(const GURL& url) { | 130 void TabAndroid::RunExternalProtocolDialog(const GURL& url) { |
132 } | 131 } |
133 | 132 |
134 bool TabAndroid::RegisterTabAndroid(JNIEnv* env) { | 133 bool TabAndroid::RegisterTabAndroid(JNIEnv* env) { |
135 return RegisterNativesImpl(env); | 134 return RegisterNativesImpl(env); |
136 } | 135 } |
OLD | NEW |