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 #include "chrome/browser/api/infobars/infobar_service.h" | 6 #include "chrome/browser/api/infobars/infobar_service.h" |
7 #include "chrome/browser/autofill/autofill_external_delegate.h" | 7 #include "chrome/browser/autofill/autofill_external_delegate.h" |
8 #include "chrome/browser/autofill/autofill_manager.h" | 8 #include "chrome/browser/autofill/autofill_manager.h" |
9 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 9 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
10 #include "chrome/browser/extensions/tab_helper.h" | 10 #include "chrome/browser/extensions/tab_helper.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 contents->SetUserData(&kTabHelpersInitializedUserDataKey, | 48 contents->SetUserData(&kTabHelpersInitializedUserDataKey, |
49 new base::SupportsUserData::Data()); | 49 new base::SupportsUserData::Data()); |
50 | 50 |
51 // Set the view type. | 51 // Set the view type. |
52 chrome::SetViewType(contents, chrome::VIEW_TYPE_TAB_CONTENTS); | 52 chrome::SetViewType(contents, chrome::VIEW_TYPE_TAB_CONTENTS); |
53 | 53 |
54 // SessionTabHelper comes first because it sets up the tab ID, and other | 54 // SessionTabHelper comes first because it sets up the tab ID, and other |
55 // helpers may rely on that. | 55 // helpers may rely on that. |
56 SessionTabHelper::CreateForWebContents(contents); | 56 SessionTabHelper::CreateForWebContents(contents); |
57 | 57 |
58 TabAutofillManagerDelegate::CreateForWebContents(contents); | 58 autofill::TabAutofillManagerDelegate::CreateForWebContents(contents); |
59 AutofillManager::CreateForWebContentsAndDelegate( | 59 AutofillManager::CreateForWebContentsAndDelegate( |
60 contents, TabAutofillManagerDelegate::FromWebContents(contents)); | 60 contents, |
| 61 autofill::TabAutofillManagerDelegate::FromWebContents(contents)); |
61 AutofillExternalDelegate::CreateForWebContentsAndManager( | 62 AutofillExternalDelegate::CreateForWebContentsAndManager( |
62 contents, AutofillManager::FromWebContents(contents)); | 63 contents, AutofillManager::FromWebContents(contents)); |
63 AutofillManager::FromWebContents(contents)->SetExternalDelegate( | 64 AutofillManager::FromWebContents(contents)->SetExternalDelegate( |
64 AutofillExternalDelegate::FromWebContents(contents)); | 65 AutofillExternalDelegate::FromWebContents(contents)); |
65 BlockedContentTabHelper::CreateForWebContents(contents); | 66 BlockedContentTabHelper::CreateForWebContents(contents); |
66 BookmarkTabHelper::CreateForWebContents(contents); | 67 BookmarkTabHelper::CreateForWebContents(contents); |
67 CoreTabHelper::CreateForWebContents(contents); | 68 CoreTabHelper::CreateForWebContents(contents); |
68 extensions::TabHelper::CreateForWebContents(contents); | 69 extensions::TabHelper::CreateForWebContents(contents); |
69 FaviconTabHelper::CreateForWebContents(contents); | 70 FaviconTabHelper::CreateForWebContents(contents); |
70 FindTabHelper::CreateForWebContents(contents); | 71 FindTabHelper::CreateForWebContents(contents); |
(...skipping 26 matching lines...) Expand all Loading... |
97 } | 98 } |
98 | 99 |
99 TabAndroid::TabAndroid() : tab_id_(-1) { | 100 TabAndroid::TabAndroid() : tab_id_(-1) { |
100 } | 101 } |
101 | 102 |
102 TabAndroid::~TabAndroid() { | 103 TabAndroid::~TabAndroid() { |
103 } | 104 } |
104 | 105 |
105 void TabAndroid::RunExternalProtocolDialog(const GURL& url) { | 106 void TabAndroid::RunExternalProtocolDialog(const GURL& url) { |
106 } | 107 } |
OLD | NEW |