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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 305103003: Fix for 'Simple Adblock' extension crashes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 3215 matching lines...) Expand 10 before | Expand all | Expand 10 after
3226 } 3226 }
3227 } 3227 }
3228 #endif // OS_MACOSX 3228 #endif // OS_MACOSX
3229 3229
3230 void RenderViewImpl::Close() { 3230 void RenderViewImpl::Close() {
3231 // We need to grab a pointer to the doomed WebView before we destroy it. 3231 // We need to grab a pointer to the doomed WebView before we destroy it.
3232 WebView* doomed = webview(); 3232 WebView* doomed = webview();
3233 RenderWidget::Close(); 3233 RenderWidget::Close();
3234 g_view_map.Get().erase(doomed); 3234 g_view_map.Get().erase(doomed);
3235 g_routing_id_view_map.Get().erase(routing_id_); 3235 g_routing_id_view_map.Get().erase(routing_id_);
3236 RenderThread::Get()->Send(new ViewHostMsg_Close_ACK(routing_id_));
3236 } 3237 }
3237 3238
3238 void RenderViewImpl::DidHandleKeyEvent() { 3239 void RenderViewImpl::DidHandleKeyEvent() {
3239 ClearEditCommands(); 3240 ClearEditCommands();
3240 } 3241 }
3241 3242
3242 bool RenderViewImpl::WillHandleMouseEvent(const blink::WebMouseEvent& event) { 3243 bool RenderViewImpl::WillHandleMouseEvent(const blink::WebMouseEvent& event) {
3243 possible_drag_event_info_.event_source = 3244 possible_drag_event_info_.event_source =
3244 ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE; 3245 ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE;
3245 possible_drag_event_info_.event_location = 3246 possible_drag_event_info_.event_location =
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
4052 std::vector<gfx::Size> sizes; 4053 std::vector<gfx::Size> sizes;
4053 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); 4054 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes);
4054 if (!url.isEmpty()) 4055 if (!url.isEmpty())
4055 urls.push_back( 4056 urls.push_back(
4056 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); 4057 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes));
4057 } 4058 }
4058 SendUpdateFaviconURL(urls); 4059 SendUpdateFaviconURL(urls);
4059 } 4060 }
4060 4061
4061 } // namespace content 4062 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698