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

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

Issue 3209002: Input file type now supported in extension popups. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Synced Created 10 years, 3 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
« no previous file with comments | « chrome/browser/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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/tab_contents/tab_contents.h" 5 #include "chrome/browser/tab_contents/tab_contents.h"
6 6
7 #if defined(OS_CHROMEOS) 7 #if defined(OS_CHROMEOS)
8 // For GdkScreen 8 // For GdkScreen
9 #include <gdk/gdk.h> 9 #include <gdk/gdk.h>
10 #endif // defined(OS_CHROMEOS) 10 #endif // defined(OS_CHROMEOS)
(...skipping 27 matching lines...) Expand all
38 #include "chrome/browser/dom_ui/dom_ui.h" 38 #include "chrome/browser/dom_ui/dom_ui.h"
39 #include "chrome/browser/dom_ui/dom_ui_factory.h" 39 #include "chrome/browser/dom_ui/dom_ui_factory.h"
40 #include "chrome/browser/download/download_item_model.h" 40 #include "chrome/browser/download/download_item_model.h"
41 #include "chrome/browser/download/download_manager.h" 41 #include "chrome/browser/download/download_manager.h"
42 #include "chrome/browser/download/download_request_limiter.h" 42 #include "chrome/browser/download/download_request_limiter.h"
43 #include "chrome/browser/external_protocol_handler.h" 43 #include "chrome/browser/external_protocol_handler.h"
44 #include "chrome/browser/extensions/extensions_service.h" 44 #include "chrome/browser/extensions/extensions_service.h"
45 #include "chrome/browser/history/history_types.h" 45 #include "chrome/browser/history/history_types.h"
46 #include "chrome/browser/history/top_sites.h" 46 #include "chrome/browser/history/top_sites.h"
47 #include "chrome/browser/favicon_service.h" 47 #include "chrome/browser/favicon_service.h"
48 #include "chrome/browser/file_select_helper.h"
48 #include "chrome/browser/find_bar_state.h" 49 #include "chrome/browser/find_bar_state.h"
49 #include "chrome/browser/google/google_util.h" 50 #include "chrome/browser/google/google_util.h"
50 #include "chrome/browser/host_content_settings_map.h" 51 #include "chrome/browser/host_content_settings_map.h"
51 #include "chrome/browser/hung_renderer_dialog.h" 52 #include "chrome/browser/hung_renderer_dialog.h"
52 #include "chrome/browser/message_box_handler.h" 53 #include "chrome/browser/message_box_handler.h"
53 #include "chrome/browser/load_from_memory_cache_details.h" 54 #include "chrome/browser/load_from_memory_cache_details.h"
54 #include "chrome/browser/load_notification_details.h" 55 #include "chrome/browser/load_notification_details.h"
55 #include "chrome/browser/metrics/metric_event_duration_details.h" 56 #include "chrome/browser/metrics/metric_event_duration_details.h"
56 #include "chrome/browser/modal_html_dialog_delegate.h" 57 #include "chrome/browser/modal_html_dialog_delegate.h"
57 #include "chrome/browser/omnibox_search_hint.h" 58 #include "chrome/browser/omnibox_search_hint.h"
(...skipping 14 matching lines...) Expand all
72 #include "chrome/browser/search_engines/template_url.h" 73 #include "chrome/browser/search_engines/template_url.h"
73 #include "chrome/browser/search_engines/template_url_fetcher.h" 74 #include "chrome/browser/search_engines/template_url_fetcher.h"
74 #include "chrome/browser/search_engines/template_url_model.h" 75 #include "chrome/browser/search_engines/template_url_model.h"
75 #include "chrome/browser/sessions/session_types.h" 76 #include "chrome/browser/sessions/session_types.h"
76 #include "chrome/browser/tab_contents/infobar_delegate.h" 77 #include "chrome/browser/tab_contents/infobar_delegate.h"
77 #include "chrome/browser/tab_contents/interstitial_page.h" 78 #include "chrome/browser/tab_contents/interstitial_page.h"
78 #include "chrome/browser/tab_contents/match_preview.h" 79 #include "chrome/browser/tab_contents/match_preview.h"
79 #include "chrome/browser/tab_contents/navigation_entry.h" 80 #include "chrome/browser/tab_contents/navigation_entry.h"
80 #include "chrome/browser/tab_contents/provisional_load_details.h" 81 #include "chrome/browser/tab_contents/provisional_load_details.h"
81 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 82 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
82 #include "chrome/browser/tab_contents/tab_contents_file_select_helper.h"
83 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" 83 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h"
84 #include "chrome/browser/tab_contents/tab_contents_view.h" 84 #include "chrome/browser/tab_contents/tab_contents_view.h"
85 #include "chrome/browser/tab_contents/thumbnail_generator.h" 85 #include "chrome/browser/tab_contents/thumbnail_generator.h"
86 #include "chrome/browser/translate/page_translated_details.h" 86 #include "chrome/browser/translate/page_translated_details.h"
87 #include "chrome/common/bindings_policy.h" 87 #include "chrome/common/bindings_policy.h"
88 #include "chrome/common/chrome_switches.h" 88 #include "chrome/common/chrome_switches.h"
89 #include "chrome/common/extensions/extension.h" 89 #include "chrome/common/extensions/extension.h"
90 #include "chrome/common/extensions/extension_action.h" 90 #include "chrome/common/extensions/extension_action.h"
91 #include "chrome/common/extensions/extension_resource.h" 91 #include "chrome/common/extensions/extension_resource.h"
92 #include "chrome/common/extensions/url_pattern.h" 92 #include "chrome/common/extensions/url_pattern.h"
(...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after
2290 blocked_plugin_manager_.reset(new BlockedPluginManager(this)); 2290 blocked_plugin_manager_.reset(new BlockedPluginManager(this));
2291 return blocked_plugin_manager_.get(); 2291 return blocked_plugin_manager_.get();
2292 } 2292 }
2293 2293
2294 RenderViewHostDelegate::SSL* TabContents::GetSSLDelegate() { 2294 RenderViewHostDelegate::SSL* TabContents::GetSSLDelegate() {
2295 return GetSSLHelper(); 2295 return GetSSLHelper();
2296 } 2296 }
2297 2297
2298 RenderViewHostDelegate::FileSelect* TabContents::GetFileSelectDelegate() { 2298 RenderViewHostDelegate::FileSelect* TabContents::GetFileSelectDelegate() {
2299 if (file_select_helper_.get() == NULL) 2299 if (file_select_helper_.get() == NULL)
2300 file_select_helper_.reset(new TabContentsFileSelectHelper(this)); 2300 file_select_helper_.reset(new FileSelectHelper(profile()));
2301 return file_select_helper_.get(); 2301 return file_select_helper_.get();
2302 } 2302 }
2303 2303
2304 AutomationResourceRoutingDelegate* 2304 AutomationResourceRoutingDelegate*
2305 TabContents::GetAutomationResourceRoutingDelegate() { 2305 TabContents::GetAutomationResourceRoutingDelegate() {
2306 return delegate(); 2306 return delegate();
2307 } 2307 }
2308 2308
2309 RenderViewHostDelegate::BookmarkDrag* TabContents::GetBookmarkDragDelegate() { 2309 RenderViewHostDelegate::BookmarkDrag* TabContents::GetBookmarkDragDelegate() {
2310 return bookmark_drag_; 2310 return bookmark_drag_;
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
3253 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); 3253 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save));
3254 } 3254 }
3255 3255
3256 Profile* TabContents::GetProfileForPasswordManager() { 3256 Profile* TabContents::GetProfileForPasswordManager() {
3257 return profile(); 3257 return profile();
3258 } 3258 }
3259 3259
3260 bool TabContents::DidLastPageLoadEncounterSSLErrors() { 3260 bool TabContents::DidLastPageLoadEncounterSSLErrors() {
3261 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); 3261 return controller().ssl_manager()->ProcessedSSLErrorFromRequest();
3262 } 3262 }
OLDNEW
« no previous file with comments | « chrome/browser/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