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

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

Issue 10843071: Create chrome/browser/api directory. Move infobar delegates used by Autofill to the directory. (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
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/api/infobars/infobar_tab_helper.h"
9 #include "chrome/browser/autofill/autocomplete_history_manager.h" 10 #include "chrome/browser/autofill/autocomplete_history_manager.h"
10 #include "chrome/browser/autofill/autofill_external_delegate.h" 11 #include "chrome/browser/autofill/autofill_external_delegate.h"
11 #include "chrome/browser/autofill/autofill_manager.h" 12 #include "chrome/browser/autofill/autofill_manager.h"
12 #include "chrome/browser/automation/automation_tab_helper.h" 13 #include "chrome/browser/automation/automation_tab_helper.h"
13 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" 14 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h"
14 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 15 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
15 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h" 16 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h"
16 #include "chrome/browser/extensions/tab_helper.h" 17 #include "chrome/browser/extensions/tab_helper.h"
17 #include "chrome/browser/external_protocol/external_protocol_observer.h" 18 #include "chrome/browser/external_protocol/external_protocol_observer.h"
18 #include "chrome/browser/favicon/favicon_tab_helper.h" 19 #include "chrome/browser/favicon/favicon_tab_helper.h"
19 #include "chrome/browser/history/history_tab_helper.h" 20 #include "chrome/browser/history/history_tab_helper.h"
20 #include "chrome/browser/infobars/infobar_tab_helper.h"
21 #include "chrome/browser/net/cache_stats.h" 21 #include "chrome/browser/net/cache_stats.h"
22 #include "chrome/browser/omnibox_search_hint.h" 22 #include "chrome/browser/omnibox_search_hint.h"
23 #include "chrome/browser/password_manager/password_manager.h" 23 #include "chrome/browser/password_manager/password_manager.h"
24 #include "chrome/browser/password_manager/password_manager_delegate_impl.h" 24 #include "chrome/browser/password_manager/password_manager_delegate_impl.h"
25 #include "chrome/browser/plugin_observer.h" 25 #include "chrome/browser/plugin_observer.h"
26 #include "chrome/browser/prerender/prerender_tab_helper.h" 26 #include "chrome/browser/prerender/prerender_tab_helper.h"
27 #include "chrome/browser/printing/print_preview_message_handler.h" 27 #include "chrome/browser/printing/print_preview_message_handler.h"
28 #include "chrome/browser/printing/print_view_manager.h" 28 #include "chrome/browser/printing/print_view_manager.h"
29 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h" 29 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h"
30 #include "chrome/browser/sessions/restore_tab_helper.h" 30 #include "chrome/browser/sessions/restore_tab_helper.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 244
245 //////////////////////////////////////////////////////////////////////////////// 245 ////////////////////////////////////////////////////////////////////////////////
246 // WebContentsObserver overrides 246 // WebContentsObserver overrides
247 247
248 void TabContents::WebContentsDestroyed(WebContents* tab) { 248 void TabContents::WebContentsDestroyed(WebContents* tab) {
249 // Destruction of the WebContents should only be done by us from our 249 // Destruction of the WebContents should only be done by us from our
250 // destructor. Otherwise it's very likely we (or one of the helpers we own) 250 // destructor. Otherwise it's very likely we (or one of the helpers we own)
251 // will attempt to access the WebContents and we'll crash. 251 // will attempt to access the WebContents and we'll crash.
252 DCHECK(in_destructor_); 252 DCHECK(in_destructor_);
253 } 253 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698