Chromium Code Reviews

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

Issue 2884040: Rename ExternalProtocolHandler::OnUserGesture -> PermitLaunchUrl & call from EFD::HandleRequest (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: cr changes Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « chrome/browser/external_protocol_handler.cc ('k') | 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) 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 1855 matching lines...)
1866 new_url->set_safe_for_autoreplace(true); 1866 new_url->set_safe_for_autoreplace(true);
1867 url_model->Add(new_url); 1867 url_model->Add(new_url);
1868 } 1868 }
1869 1869
1870 void TabContents::OnUserGesture() { 1870 void TabContents::OnUserGesture() {
1871 // See comment in RenderViewHostDelegate::OnUserGesture as to why we do this. 1871 // See comment in RenderViewHostDelegate::OnUserGesture as to why we do this.
1872 DownloadRequestLimiter* limiter = 1872 DownloadRequestLimiter* limiter =
1873 g_browser_process->download_request_limiter(); 1873 g_browser_process->download_request_limiter();
1874 if (limiter) 1874 if (limiter)
1875 limiter->OnUserGesture(this); 1875 limiter->OnUserGesture(this);
1876 ExternalProtocolHandler::OnUserGesture(); 1876 ExternalProtocolHandler::PermitLaunchUrl();
1877 controller_.OnUserGesture(); 1877 controller_.OnUserGesture();
1878 } 1878 }
1879 1879
1880 void TabContents::OnFindReply(int request_id, 1880 void TabContents::OnFindReply(int request_id,
1881 int number_of_matches, 1881 int number_of_matches,
1882 const gfx::Rect& selection_rect, 1882 const gfx::Rect& selection_rect,
1883 int active_match_ordinal, 1883 int active_match_ordinal,
1884 bool final_update) { 1884 bool final_update) {
1885 // Ignore responses for requests that have been aborted. 1885 // Ignore responses for requests that have been aborted.
1886 if (find_op_aborted_) 1886 if (find_op_aborted_)
(...skipping 1373 matching lines...)
3260 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); 3260 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save));
3261 } 3261 }
3262 3262
3263 Profile* TabContents::GetProfileForPasswordManager() { 3263 Profile* TabContents::GetProfileForPasswordManager() {
3264 return profile(); 3264 return profile();
3265 } 3265 }
3266 3266
3267 bool TabContents::DidLastPageLoadEncounterSSLErrors() { 3267 bool TabContents::DidLastPageLoadEncounterSSLErrors() {
3268 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); 3268 return controller().ssl_manager()->ProcessedSSLErrorFromRequest();
3269 } 3269 }
OLDNEW
« no previous file with comments | « chrome/browser/external_protocol_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine