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

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

Issue 7013001: Rename BookmarksTabHelper to BookmarkTabHelper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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_wrapper.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_wrapper.h" 5 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.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_manager.h" 10 #include "chrome/browser/autofill/autofill_manager.h"
(...skipping 13 matching lines...) Expand all
24 #include "chrome/browser/pdf_unsupported_feature.h" 24 #include "chrome/browser/pdf_unsupported_feature.h"
25 #include "chrome/browser/prefs/pref_service.h" 25 #include "chrome/browser/prefs/pref_service.h"
26 #include "chrome/browser/prerender/prerender_observer.h" 26 #include "chrome/browser/prerender/prerender_observer.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/profiles/profile.h" 28 #include "chrome/browser/profiles/profile.h"
29 #include "chrome/browser/safe_browsing/client_side_detection_host.h" 29 #include "chrome/browser/safe_browsing/client_side_detection_host.h"
30 #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h" 30 #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h"
31 #include "chrome/browser/tab_contents/thumbnail_generator.h" 31 #include "chrome/browser/tab_contents/thumbnail_generator.h"
32 #include "chrome/browser/translate/translate_tab_helper.h" 32 #include "chrome/browser/translate/translate_tab_helper.h"
33 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" 33 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h"
34 #include "chrome/browser/ui/bookmarks/bookmarks_tab_helper.h" 34 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
35 #include "chrome/browser/ui/download/download_tab_helper.h" 35 #include "chrome/browser/ui/download/download_tab_helper.h"
36 #include "chrome/browser/ui/find_bar/find_tab_helper.h" 36 #include "chrome/browser/ui/find_bar/find_tab_helper.h"
37 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" 37 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h"
38 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h" 38 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h"
39 #include "chrome/common/chrome_switches.h" 39 #include "chrome/common/chrome_switches.h"
40 #include "chrome/common/pref_names.h" 40 #include "chrome/common/pref_names.h"
41 #include "chrome/common/render_messages.h" 41 #include "chrome/common/render_messages.h"
42 #include "content/browser/tab_contents/tab_contents.h" 42 #include "content/browser/tab_contents/tab_contents.h"
43 #include "content/common/notification_service.h" 43 #include "content/common/notification_service.h"
44 #include "content/common/view_messages.h" 44 #include "content/common/view_messages.h"
(...skipping 17 matching lines...) Expand all
62 DCHECK(!GetCurrentWrapperForContents(contents)); 62 DCHECK(!GetCurrentWrapperForContents(contents));
63 // Stash this in the property bag so it can be retrieved without having to 63 // Stash this in the property bag so it can be retrieved without having to
64 // go to a Browser. 64 // go to a Browser.
65 property_accessor()->SetProperty(contents->property_bag(), this); 65 property_accessor()->SetProperty(contents->property_bag(), this);
66 66
67 // Create the tab helpers. 67 // Create the tab helpers.
68 autocomplete_history_manager_.reset(new AutocompleteHistoryManager(contents)); 68 autocomplete_history_manager_.reset(new AutocompleteHistoryManager(contents));
69 autofill_manager_.reset(new AutofillManager(contents)); 69 autofill_manager_.reset(new AutofillManager(contents));
70 automation_tab_helper_.reset(new AutomationTabHelper(contents)); 70 automation_tab_helper_.reset(new AutomationTabHelper(contents));
71 blocked_content_tab_helper_.reset(new BlockedContentTabHelper(this)); 71 blocked_content_tab_helper_.reset(new BlockedContentTabHelper(this));
72 bookmarks_tab_helper_.reset(new BookmarksTabHelper(this)); 72 bookmark_tab_helper_.reset(new BookmarkTabHelper(this));
73 download_tab_helper_.reset(new DownloadTabHelper(contents)); 73 download_tab_helper_.reset(new DownloadTabHelper(contents));
74 extension_tab_helper_.reset(new ExtensionTabHelper(this)); 74 extension_tab_helper_.reset(new ExtensionTabHelper(this));
75 favicon_tab_helper_.reset(new FaviconTabHelper(contents)); 75 favicon_tab_helper_.reset(new FaviconTabHelper(contents));
76 find_tab_helper_.reset(new FindTabHelper(contents)); 76 find_tab_helper_.reset(new FindTabHelper(contents));
77 password_manager_delegate_.reset(new PasswordManagerDelegateImpl(contents)); 77 password_manager_delegate_.reset(new PasswordManagerDelegateImpl(contents));
78 password_manager_.reset( 78 password_manager_.reset(
79 new PasswordManager(contents, password_manager_delegate_.get())); 79 new PasswordManager(contents, password_manager_delegate_.get()));
80 safebrowsing_detection_host_.reset( 80 safebrowsing_detection_host_.reset(
81 safe_browsing::ClientSideDetectionHost::Create(contents)); 81 safe_browsing::ClientSideDetectionHost::Create(contents));
82 search_engine_tab_helper_.reset(new SearchEngineTabHelper(contents)); 82 search_engine_tab_helper_.reset(new SearchEngineTabHelper(contents));
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 void TabContentsWrapper::OnSnapshot(const SkBitmap& bitmap) { 353 void TabContentsWrapper::OnSnapshot(const SkBitmap& bitmap) {
354 NotificationService::current()->Notify( 354 NotificationService::current()->Notify(
355 NotificationType::TAB_SNAPSHOT_TAKEN, 355 NotificationType::TAB_SNAPSHOT_TAKEN,
356 Source<TabContentsWrapper>(this), 356 Source<TabContentsWrapper>(this),
357 Details<const SkBitmap>(&bitmap)); 357 Details<const SkBitmap>(&bitmap));
358 } 358 }
359 359
360 void TabContentsWrapper::OnPDFHasUnsupportedFeature() { 360 void TabContentsWrapper::OnPDFHasUnsupportedFeature() {
361 PDFHasUnsupportedFeature(tab_contents()); 361 PDFHasUnsupportedFeature(tab_contents());
362 } 362 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents_wrapper.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698