OLD | NEW |
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_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 } | 578 } |
579 #endif | 579 #endif |
580 | 580 |
581 void RenderViewHostImpl::RenderProcessExited(RenderProcessHost* host, | 581 void RenderViewHostImpl::RenderProcessExited(RenderProcessHost* host, |
582 base::TerminationStatus status, | 582 base::TerminationStatus status, |
583 int exit_code) { | 583 int exit_code) { |
584 if (!renderer_initialized()) | 584 if (!renderer_initialized()) |
585 return; | 585 return; |
586 | 586 |
587 RenderWidgetHostImpl::RendererExited(status, exit_code); | 587 RenderWidgetHostImpl::RendererExited(status, exit_code); |
588 delegate_->RenderViewTerminated( | 588 delegate_->RenderViewTerminated(this, status, exit_code); |
589 this, static_cast<base::TerminationStatus>(status), exit_code); | |
590 } | 589 } |
591 | 590 |
592 void RenderViewHostImpl::DragTargetDragEnter( | 591 void RenderViewHostImpl::DragTargetDragEnter( |
593 const DropData& drop_data, | 592 const DropData& drop_data, |
594 const gfx::Point& client_pt, | 593 const gfx::Point& client_pt, |
595 const gfx::Point& screen_pt, | 594 const gfx::Point& screen_pt, |
596 WebDragOperationsMask operations_allowed, | 595 WebDragOperationsMask operations_allowed, |
597 int key_modifiers) { | 596 int key_modifiers) { |
598 const int renderer_id = GetProcess()->GetID(); | 597 const int renderer_id = GetProcess()->GetID(); |
599 ChildProcessSecurityPolicyImpl* policy = | 598 ChildProcessSecurityPolicyImpl* policy = |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1428 if (!policy->CanReadFile(GetProcess()->GetID(), file)) | 1427 if (!policy->CanReadFile(GetProcess()->GetID(), file)) |
1429 policy->GrantReadFile(GetProcess()->GetID(), file); | 1428 policy->GrantReadFile(GetProcess()->GetID(), file); |
1430 } | 1429 } |
1431 } | 1430 } |
1432 | 1431 |
1433 void RenderViewHostImpl::SelectWordAroundCaret() { | 1432 void RenderViewHostImpl::SelectWordAroundCaret() { |
1434 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1433 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1435 } | 1434 } |
1436 | 1435 |
1437 } // namespace content | 1436 } // namespace content |
OLD | NEW |