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

Side by Side Diff: chrome/browser/ui/tab_contents/tab_contents.cc

Issue 10736066: Adding histograms showing fraction of page load times (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « chrome/browser/ui/tab_contents/tab_contents.h ('k') | chrome/chrome_browser.gypi » ('j') | 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/ui/tab_contents/tab_contents.h" 5 #include "chrome/browser/ui/tab_contents/tab_contents.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "chrome/browser/autocomplete_history_manager.h" 9 #include "chrome/browser/autocomplete_history_manager.h"
10 #include "chrome/browser/autofill/autofill_external_delegate.h" 10 #include "chrome/browser/autofill/autofill_external_delegate.h"
11 #include "chrome/browser/autofill/autofill_manager.h" 11 #include "chrome/browser/autofill/autofill_manager.h"
12 #include "chrome/browser/automation/automation_tab_helper.h" 12 #include "chrome/browser/automation/automation_tab_helper.h"
13 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" 13 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h"
14 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 14 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
15 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h" 15 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h"
16 #include "chrome/browser/extensions/tab_helper.h" 16 #include "chrome/browser/extensions/tab_helper.h"
17 #include "chrome/browser/external_protocol/external_protocol_observer.h" 17 #include "chrome/browser/external_protocol/external_protocol_observer.h"
18 #include "chrome/browser/favicon/favicon_tab_helper.h" 18 #include "chrome/browser/favicon/favicon_tab_helper.h"
19 #include "chrome/browser/history/history_tab_helper.h" 19 #include "chrome/browser/history/history_tab_helper.h"
20 #include "chrome/browser/infobars/infobar_tab_helper.h" 20 #include "chrome/browser/infobars/infobar_tab_helper.h"
21 #include "chrome/browser/net/cache_stats.h"
21 #include "chrome/browser/omnibox_search_hint.h" 22 #include "chrome/browser/omnibox_search_hint.h"
22 #include "chrome/browser/password_manager/password_manager.h" 23 #include "chrome/browser/password_manager/password_manager.h"
23 #include "chrome/browser/password_manager/password_manager_delegate_impl.h" 24 #include "chrome/browser/password_manager/password_manager_delegate_impl.h"
24 #include "chrome/browser/plugin_observer.h" 25 #include "chrome/browser/plugin_observer.h"
25 #include "chrome/browser/prerender/prerender_tab_helper.h" 26 #include "chrome/browser/prerender/prerender_tab_helper.h"
26 #include "chrome/browser/printing/print_preview_message_handler.h" 27 #include "chrome/browser/printing/print_preview_message_handler.h"
27 #include "chrome/browser/printing/print_view_manager.h" 28 #include "chrome/browser/printing/print_view_manager.h"
28 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h" 29 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h"
29 #include "chrome/browser/sessions/restore_tab_helper.h" 30 #include "chrome/browser/sessions/restore_tab_helper.h"
30 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" 31 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 AutofillExternalDelegate::Create(this, autofill_manager_.get())); 95 AutofillExternalDelegate::Create(this, autofill_manager_.get()));
95 autofill_manager_->SetExternalDelegate(autofill_external_delegate_.get()); 96 autofill_manager_->SetExternalDelegate(autofill_external_delegate_.get());
96 autocomplete_history_manager_->SetExternalDelegate( 97 autocomplete_history_manager_->SetExternalDelegate(
97 autofill_external_delegate_.get()); 98 autofill_external_delegate_.get());
98 } 99 }
99 #if defined(ENABLE_AUTOMATION) 100 #if defined(ENABLE_AUTOMATION)
100 automation_tab_helper_.reset(new AutomationTabHelper(contents)); 101 automation_tab_helper_.reset(new AutomationTabHelper(contents));
101 #endif 102 #endif
102 blocked_content_tab_helper_.reset(new BlockedContentTabHelper(this)); 103 blocked_content_tab_helper_.reset(new BlockedContentTabHelper(this));
103 bookmark_tab_helper_.reset(new BookmarkTabHelper(this)); 104 bookmark_tab_helper_.reset(new BookmarkTabHelper(this));
105 cache_stats_tab_helper_.reset(
106 new chrome_browser_net::CacheStatsTabHelper(this));
104 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) 107 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
105 captive_portal_tab_helper_.reset( 108 captive_portal_tab_helper_.reset(
106 new captive_portal::CaptivePortalTabHelper(profile(), web_contents())); 109 new captive_portal::CaptivePortalTabHelper(profile(), web_contents()));
107 #endif 110 #endif
108 constrained_window_tab_helper_.reset(new ConstrainedWindowTabHelper(this)); 111 constrained_window_tab_helper_.reset(new ConstrainedWindowTabHelper(this));
109 core_tab_helper_.reset(new CoreTabHelper(contents)); 112 core_tab_helper_.reset(new CoreTabHelper(contents));
110 extension_tab_helper_.reset(new extensions::TabHelper(this)); 113 extension_tab_helper_.reset(new extensions::TabHelper(this));
111 favicon_tab_helper_.reset(new FaviconTabHelper(contents)); 114 favicon_tab_helper_.reset(new FaviconTabHelper(contents));
112 find_tab_helper_.reset(new FindTabHelper(contents)); 115 find_tab_helper_.reset(new FindTabHelper(contents));
113 history_tab_helper_.reset(new HistoryTabHelper(contents)); 116 history_tab_helper_.reset(new HistoryTabHelper(contents));
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 242
240 //////////////////////////////////////////////////////////////////////////////// 243 ////////////////////////////////////////////////////////////////////////////////
241 // WebContentsObserver overrides 244 // WebContentsObserver overrides
242 245
243 void TabContents::WebContentsDestroyed(WebContents* tab) { 246 void TabContents::WebContentsDestroyed(WebContents* tab) {
244 // Destruction of the WebContents should only be done by us from our 247 // Destruction of the WebContents should only be done by us from our
245 // destructor. Otherwise it's very likely we (or one of the helpers we own) 248 // destructor. Otherwise it's very likely we (or one of the helpers we own)
246 // will attempt to access the WebContents and we'll crash. 249 // will attempt to access the WebContents and we'll crash.
247 DCHECK(in_destructor_); 250 DCHECK(in_destructor_);
248 } 251 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698