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

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

Issue 12391082: Show alternate error page for non-existent URLs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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"
11 #include "chrome/browser/favicon/favicon_tab_helper.h" 11 #include "chrome/browser/favicon/favicon_tab_helper.h"
12 #include "chrome/browser/history/history_tab_helper.h" 12 #include "chrome/browser/history/history_tab_helper.h"
13 #include "chrome/browser/password_manager/password_manager.h" 13 #include "chrome/browser/password_manager/password_manager.h"
14 #include "chrome/browser/password_manager/password_manager_delegate_impl.h" 14 #include "chrome/browser/password_manager/password_manager_delegate_impl.h"
15 #include "chrome/browser/prerender/prerender_tab_helper.h" 15 #include "chrome/browser/prerender/prerender_tab_helper.h"
16 #include "chrome/browser/sessions/session_tab_helper.h" 16 #include "chrome/browser/sessions/session_tab_helper.h"
17 #include "chrome/browser/ssl/ssl_tab_helper.h" 17 #include "chrome/browser/ssl/ssl_tab_helper.h"
18 #include "chrome/browser/translate/translate_tab_helper.h" 18 #include "chrome/browser/translate/translate_tab_helper.h"
19 #include "chrome/browser/ui/alternate_error_tab_observer.h"
19 #include "chrome/browser/ui/android/window_android_helper.h" 20 #include "chrome/browser/ui/android/window_android_helper.h"
20 #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h" 21 #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h"
21 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" 22 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h"
22 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" 23 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
23 #include "chrome/browser/ui/browser_tab_contents.h" 24 #include "chrome/browser/ui/browser_tab_contents.h"
24 #include "chrome/browser/ui/find_bar/find_tab_helper.h" 25 #include "chrome/browser/ui/find_bar/find_tab_helper.h"
25 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" 26 #include "chrome/browser/ui/prefs/prefs_tab_helper.h"
26 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" 27 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h"
27 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" 28 #include "chrome/browser/ui/tab_contents/core_tab_helper.h"
28 #include "chrome/browser/view_type_utils.h" 29 #include "chrome/browser/view_type_utils.h"
(...skipping 20 matching lines...) Expand all
49 contents->SetUserData(&kTabHelpersInitializedUserDataKey, 50 contents->SetUserData(&kTabHelpersInitializedUserDataKey,
50 new base::SupportsUserData::Data()); 51 new base::SupportsUserData::Data());
51 52
52 // Set the view type. 53 // Set the view type.
53 chrome::SetViewType(contents, chrome::VIEW_TYPE_TAB_CONTENTS); 54 chrome::SetViewType(contents, chrome::VIEW_TYPE_TAB_CONTENTS);
54 55
55 // SessionTabHelper comes first because it sets up the tab ID, and other 56 // SessionTabHelper comes first because it sets up the tab ID, and other
56 // helpers may rely on that. 57 // helpers may rely on that.
57 SessionTabHelper::CreateForWebContents(contents); 58 SessionTabHelper::CreateForWebContents(contents);
58 59
60 AlternateErrorPageTabObserver::CreateForWebContents(contents);
59 autofill::TabAutofillManagerDelegate::CreateForWebContents(contents); 61 autofill::TabAutofillManagerDelegate::CreateForWebContents(contents);
60 AutofillManager::CreateForWebContentsAndDelegate( 62 AutofillManager::CreateForWebContentsAndDelegate(
61 contents, 63 contents,
62 autofill::TabAutofillManagerDelegate::FromWebContents(contents)); 64 autofill::TabAutofillManagerDelegate::FromWebContents(contents));
63 AutofillExternalDelegate::CreateForWebContentsAndManager( 65 AutofillExternalDelegate::CreateForWebContentsAndManager(
64 contents, AutofillManager::FromWebContents(contents)); 66 contents, AutofillManager::FromWebContents(contents));
65 AutofillManager::FromWebContents(contents)->SetExternalDelegate( 67 AutofillManager::FromWebContents(contents)->SetExternalDelegate(
66 AutofillExternalDelegate::FromWebContents(contents)); 68 AutofillExternalDelegate::FromWebContents(contents));
67 BlockedContentTabHelper::CreateForWebContents(contents); 69 BlockedContentTabHelper::CreateForWebContents(contents);
68 BookmarkTabHelper::CreateForWebContents(contents); 70 BookmarkTabHelper::CreateForWebContents(contents);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 102 }
101 103
102 TabAndroid::TabAndroid() : tab_id_(-1) { 104 TabAndroid::TabAndroid() : tab_id_(-1) {
103 } 105 }
104 106
105 TabAndroid::~TabAndroid() { 107 TabAndroid::~TabAndroid() {
106 } 108 }
107 109
108 void TabAndroid::RunExternalProtocolDialog(const GURL& url) { 110 void TabAndroid::RunExternalProtocolDialog(const GURL& url) {
109 } 111 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698