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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 3142029: Remove sync handling of IsSearchProviderInstalled on the browser UI thread. (Closed)
Patch Set: Created 10 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
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/renderer_host/render_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 OnMsgShowModalHTMLDialog) 774 OnMsgShowModalHTMLDialog)
775 IPC_MESSAGE_HANDLER(ViewHostMsg_FormsSeen, OnMsgFormsSeen) 775 IPC_MESSAGE_HANDLER(ViewHostMsg_FormsSeen, OnMsgFormsSeen)
776 IPC_MESSAGE_HANDLER(ViewHostMsg_PasswordFormsFound, OnMsgPasswordFormsFound) 776 IPC_MESSAGE_HANDLER(ViewHostMsg_PasswordFormsFound, OnMsgPasswordFormsFound)
777 IPC_MESSAGE_HANDLER(ViewHostMsg_PasswordFormsVisible, 777 IPC_MESSAGE_HANDLER(ViewHostMsg_PasswordFormsVisible,
778 OnMsgPasswordFormsVisible) 778 OnMsgPasswordFormsVisible)
779 IPC_MESSAGE_HANDLER(ViewHostMsg_FormSubmitted, OnMsgFormSubmitted) 779 IPC_MESSAGE_HANDLER(ViewHostMsg_FormSubmitted, OnMsgFormSubmitted)
780 IPC_MESSAGE_HANDLER(ViewHostMsg_StartDragging, OnMsgStartDragging) 780 IPC_MESSAGE_HANDLER(ViewHostMsg_StartDragging, OnMsgStartDragging)
781 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateDragCursor, OnUpdateDragCursor) 781 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateDragCursor, OnUpdateDragCursor)
782 IPC_MESSAGE_HANDLER(ViewHostMsg_TakeFocus, OnTakeFocus) 782 IPC_MESSAGE_HANDLER(ViewHostMsg_TakeFocus, OnTakeFocus)
783 IPC_MESSAGE_HANDLER(ViewHostMsg_PageHasOSDD, OnMsgPageHasOSDD) 783 IPC_MESSAGE_HANDLER(ViewHostMsg_PageHasOSDD, OnMsgPageHasOSDD)
784 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_GetSearchProviderInstallState,
785 OnMsgGetSearchProviderInstallState)
786 IPC_MESSAGE_HANDLER(ViewHostMsg_DidGetPrintedPagesCount, 784 IPC_MESSAGE_HANDLER(ViewHostMsg_DidGetPrintedPagesCount,
787 OnDidGetPrintedPagesCount) 785 OnDidGetPrintedPagesCount)
788 IPC_MESSAGE_HANDLER(ViewHostMsg_DidPrintPage, DidPrintPage) 786 IPC_MESSAGE_HANDLER(ViewHostMsg_DidPrintPage, DidPrintPage)
789 IPC_MESSAGE_HANDLER(ViewHostMsg_AddMessageToConsole, OnAddMessageToConsole) 787 IPC_MESSAGE_HANDLER(ViewHostMsg_AddMessageToConsole, OnAddMessageToConsole)
790 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardToDevToolsAgent, 788 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardToDevToolsAgent,
791 OnForwardToDevToolsAgent); 789 OnForwardToDevToolsAgent);
792 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardToDevToolsClient, 790 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardToDevToolsClient,
793 OnForwardToDevToolsClient); 791 OnForwardToDevToolsClient);
794 IPC_MESSAGE_HANDLER(ViewHostMsg_ActivateDevToolsWindow, 792 IPC_MESSAGE_HANDLER(ViewHostMsg_ActivateDevToolsWindow,
795 OnActivateDevToolsWindow); 793 OnActivateDevToolsWindow);
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
1462 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1460 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1463 if (view) 1461 if (view)
1464 view->TakeFocus(reverse); 1462 view->TakeFocus(reverse);
1465 } 1463 }
1466 1464
1467 void RenderViewHost::OnMsgPageHasOSDD(int32 page_id, const GURL& doc_url, 1465 void RenderViewHost::OnMsgPageHasOSDD(int32 page_id, const GURL& doc_url,
1468 bool autodetected) { 1466 bool autodetected) {
1469 delegate_->PageHasOSDD(this, page_id, doc_url, autodetected); 1467 delegate_->PageHasOSDD(this, page_id, doc_url, autodetected);
1470 } 1468 }
1471 1469
1472 void RenderViewHost::OnMsgGetSearchProviderInstallState(
1473 const GURL& url, IPC::Message* reply_msg) {
1474 ViewHostMsg_GetSearchProviderInstallState::WriteReplyParams(
1475 reply_msg,
1476 delegate_->GetSearchProviderInstallState(url));
1477 Send(reply_msg);
1478 }
1479
1480 void RenderViewHost::OnDidGetPrintedPagesCount(int cookie, int number_pages) { 1470 void RenderViewHost::OnDidGetPrintedPagesCount(int cookie, int number_pages) {
1481 RenderViewHostDelegate::Printing* printing_delegate = 1471 RenderViewHostDelegate::Printing* printing_delegate =
1482 delegate_->GetPrintingDelegate(); 1472 delegate_->GetPrintingDelegate();
1483 if (printing_delegate) 1473 if (printing_delegate)
1484 printing_delegate->DidGetPrintedPagesCount(cookie, number_pages); 1474 printing_delegate->DidGetPrintedPagesCount(cookie, number_pages);
1485 } 1475 }
1486 1476
1487 void RenderViewHost::DidPrintPage( 1477 void RenderViewHost::DidPrintPage(
1488 const ViewHostMsg_DidPrintPage_Params& params) { 1478 const ViewHostMsg_DidPrintPage_Params& params) {
1489 RenderViewHostDelegate::Printing* printing_delegate = 1479 RenderViewHostDelegate::Printing* printing_delegate =
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
2040 RenderViewHostDelegate::ContentSettings* content_settings_delegate = 2030 RenderViewHostDelegate::ContentSettings* content_settings_delegate =
2041 delegate_->GetContentSettingsDelegate(); 2031 delegate_->GetContentSettingsDelegate();
2042 if (content_settings_delegate) 2032 if (content_settings_delegate)
2043 content_settings_delegate->OnWebDatabaseAccessed( 2033 content_settings_delegate->OnWebDatabaseAccessed(
2044 url, name, display_name, estimated_size, blocked_by_policy); 2034 url, name, display_name, estimated_size, blocked_by_policy);
2045 } 2035 }
2046 2036
2047 void RenderViewHost::OnSetDisplayingPDFContent() { 2037 void RenderViewHost::OnSetDisplayingPDFContent() {
2048 delegate_->SetDisplayingPDFContent(); 2038 delegate_->SetDisplayingPDFContent();
2049 } 2039 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698