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

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

Issue 6246007: Generate thumbnails in the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor cleanup Created 9 years, 11 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) 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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 IPC_MESSAGE_HANDLER(ViewHostMsg_DetectedPhishingSite, 850 IPC_MESSAGE_HANDLER(ViewHostMsg_DetectedPhishingSite,
851 OnDetectedPhishingSite) 851 OnDetectedPhishingSite)
852 IPC_MESSAGE_HANDLER(ViewHostMsg_ScriptEvalResponse, OnScriptEvalResponse) 852 IPC_MESSAGE_HANDLER(ViewHostMsg_ScriptEvalResponse, OnScriptEvalResponse)
853 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateContentRestrictions, 853 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateContentRestrictions,
854 OnUpdateContentRestrictions) 854 OnUpdateContentRestrictions)
855 #if defined(OS_MACOSX) 855 #if defined(OS_MACOSX)
856 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowPopup, OnMsgShowPopup) 856 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowPopup, OnMsgShowPopup)
857 #endif 857 #endif
858 IPC_MESSAGE_HANDLER(ViewHostMsg_PagesReadyForPreview, 858 IPC_MESSAGE_HANDLER(ViewHostMsg_PagesReadyForPreview,
859 OnPagesReadyForPreview) 859 OnPagesReadyForPreview)
860 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateScrollOffset, OnUpdateScrollOffset)
860 // Have the super handle all other messages. 861 // Have the super handle all other messages.
861 IPC_MESSAGE_UNHANDLED(handled = RenderWidgetHost::OnMessageReceived(msg)) 862 IPC_MESSAGE_UNHANDLED(handled = RenderWidgetHost::OnMessageReceived(msg))
862 IPC_END_MESSAGE_MAP_EX() 863 IPC_END_MESSAGE_MAP_EX()
863 864
864 if (!msg_is_ok) { 865 if (!msg_is_ok) {
865 // The message had a handler, but its de-serialization failed. 866 // The message had a handler, but its de-serialization failed.
866 // Kill the renderer. 867 // Kill the renderer.
867 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_RVH")); 868 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_RVH"));
868 process()->ReceivedBadMessage(); 869 process()->ReceivedBadMessage();
869 } 870 }
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
2010 if (printer_query.get()) { 2011 if (printer_query.get()) {
2011 BrowserThread::PostTask( 2012 BrowserThread::PostTask(
2012 BrowserThread::IO, FROM_HERE, 2013 BrowserThread::IO, FROM_HERE,
2013 NewRunnableMethod(printer_query.get(), 2014 NewRunnableMethod(printer_query.get(),
2014 &printing::PrinterQuery::StopWorker)); 2015 &printing::PrinterQuery::StopWorker));
2015 } 2016 }
2016 2017
2017 // Send the printingDone msg for now. 2018 // Send the printingDone msg for now.
2018 Send(new ViewMsg_PrintingDone(routing_id(), params.document_cookie, true)); 2019 Send(new ViewMsg_PrintingDone(routing_id(), params.document_cookie, true));
2019 } 2020 }
2021
2022 void RenderViewHost::OnUpdateScrollOffset(const gfx::Size& scroll_offset) {
2023 last_scroll_offset_ = scroll_offset;
2024 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698