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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 297183010: Remove BrowserPluginGuestDelegate::GuestProcessGone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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/browser_plugin/browser_plugin_guest.h" 5 #include "content/browser/browser_plugin/browser_plugin_guest.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 case base::TERMINATION_STATUS_PROCESS_CRASHED: 475 case base::TERMINATION_STATUS_PROCESS_CRASHED:
476 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.Crashed")); 476 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.Crashed"));
477 break; 477 break;
478 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: 478 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION:
479 RecordAction( 479 RecordAction(
480 base::UserMetricsAction("BrowserPlugin.Guest.AbnormalDeath")); 480 base::UserMetricsAction("BrowserPlugin.Guest.AbnormalDeath"));
481 break; 481 break;
482 default: 482 default:
483 break; 483 break;
484 } 484 }
485 if (delegate_)
486 delegate_->GuestProcessGone(status);
487 } 485 }
488 486
489 // static 487 // static
490 bool BrowserPluginGuest::ShouldForwardToBrowserPluginGuest( 488 bool BrowserPluginGuest::ShouldForwardToBrowserPluginGuest(
491 const IPC::Message& message) { 489 const IPC::Message& message) {
492 switch (message.type()) { 490 switch (message.type()) {
493 case BrowserPluginHostMsg_CompositorFrameSwappedACK::ID: 491 case BrowserPluginHostMsg_CompositorFrameSwappedACK::ID:
494 case BrowserPluginHostMsg_CopyFromCompositingSurfaceAck::ID: 492 case BrowserPluginHostMsg_CopyFromCompositingSurfaceAck::ID:
495 case BrowserPluginHostMsg_DragStatusUpdate::ID: 493 case BrowserPluginHostMsg_DragStatusUpdate::ID:
496 case BrowserPluginHostMsg_ExecuteEditCommand::ID: 494 case BrowserPluginHostMsg_ExecuteEditCommand::ID:
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 void BrowserPluginGuest::OnImeCompositionRangeChanged( 969 void BrowserPluginGuest::OnImeCompositionRangeChanged(
972 const gfx::Range& range, 970 const gfx::Range& range,
973 const std::vector<gfx::Rect>& character_bounds) { 971 const std::vector<gfx::Rect>& character_bounds) {
974 static_cast<RenderWidgetHostViewBase*>( 972 static_cast<RenderWidgetHostViewBase*>(
975 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged( 973 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged(
976 range, character_bounds); 974 range, character_bounds);
977 } 975 }
978 #endif 976 #endif
979 977
980 } // namespace content 978 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/guest_view/web_view/web_view_guest.cc ('k') | content/public/browser/browser_plugin_guest_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698