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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 10113005: Remove EPM:all_hosts_ and use all_extension_views_ instead. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments addressed Created 8 years, 8 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) 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/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 void RenderWidgetHostImpl::Shutdown() { 236 void RenderWidgetHostImpl::Shutdown() {
237 if (process_->HasConnection()) { 237 if (process_->HasConnection()) {
238 // Tell the renderer object to close. 238 // Tell the renderer object to close.
239 bool rv = Send(new ViewMsg_Close(routing_id_)); 239 bool rv = Send(new ViewMsg_Close(routing_id_));
240 DCHECK(rv); 240 DCHECK(rv);
241 } 241 }
242 242
243 Destroy(); 243 Destroy();
244 } 244 }
245 245
246 bool RenderWidgetHostImpl::IsLoading() const {
247 return is_loading_;
248 }
249
246 bool RenderWidgetHostImpl::IsRenderView() const { 250 bool RenderWidgetHostImpl::IsRenderView() const {
247 return false; 251 return false;
248 } 252 }
249 253
250 bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) { 254 bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) {
251 bool handled = true; 255 bool handled = true;
252 bool msg_is_ok = true; 256 bool msg_is_ok = true;
253 IPC_BEGIN_MESSAGE_MAP_EX(RenderWidgetHostImpl, msg, msg_is_ok) 257 IPC_BEGIN_MESSAGE_MAP_EX(RenderWidgetHostImpl, msg, msg_is_ok)
254 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewReady, OnMsgRenderViewReady) 258 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewReady, OnMsgRenderViewReady)
255 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewGone, OnMsgRenderViewGone) 259 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewGone, OnMsgRenderViewGone)
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1726 // indicate that no callback is in progress (i.e. without this line 1730 // indicate that no callback is in progress (i.e. without this line
1727 // DelayedAutoResized will not get called again). 1731 // DelayedAutoResized will not get called again).
1728 new_auto_size_.SetSize(0, 0); 1732 new_auto_size_.SetSize(0, 0);
1729 if (!should_auto_resize_) 1733 if (!should_auto_resize_)
1730 return; 1734 return;
1731 1735
1732 OnRenderAutoResized(new_size); 1736 OnRenderAutoResized(new_size);
1733 } 1737 }
1734 1738
1735 } // namespace content 1739 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698