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/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/pickle.h" | 10 #include "base/pickle.h" |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: | 610 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: |
611 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.Killed")); | 611 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.Killed")); |
612 break; | 612 break; |
613 case base::TERMINATION_STATUS_PROCESS_CRASHED: | 613 case base::TERMINATION_STATUS_PROCESS_CRASHED: |
614 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.Crashed")); | 614 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.Crashed")); |
615 break; | 615 break; |
616 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: | 616 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: |
617 RecordAction( | 617 RecordAction( |
618 base::UserMetricsAction("BrowserPlugin.Guest.AbnormalDeath")); | 618 base::UserMetricsAction("BrowserPlugin.Guest.AbnormalDeath")); |
619 break; | 619 break; |
| 620 case base::TERMINATION_STATUS_LAUNCH_FAILED: |
| 621 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.LaunchFailed")); |
| 622 break; |
620 default: | 623 default: |
621 break; | 624 break; |
622 } | 625 } |
623 } | 626 } |
624 | 627 |
625 // static | 628 // static |
626 bool BrowserPluginGuest::ShouldForwardToBrowserPluginGuest( | 629 bool BrowserPluginGuest::ShouldForwardToBrowserPluginGuest( |
627 const IPC::Message& message) { | 630 const IPC::Message& message) { |
628 return (message.type() != BrowserPluginHostMsg_Attach::ID) && | 631 return (message.type() != BrowserPluginHostMsg_Attach::ID) && |
629 (IPC_MESSAGE_CLASS(message) == BrowserPluginMsgStart); | 632 (IPC_MESSAGE_CLASS(message) == BrowserPluginMsgStart); |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
992 void BrowserPluginGuest::OnImeCompositionRangeChanged( | 995 void BrowserPluginGuest::OnImeCompositionRangeChanged( |
993 const gfx::Range& range, | 996 const gfx::Range& range, |
994 const std::vector<gfx::Rect>& character_bounds) { | 997 const std::vector<gfx::Rect>& character_bounds) { |
995 static_cast<RenderWidgetHostViewBase*>( | 998 static_cast<RenderWidgetHostViewBase*>( |
996 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged( | 999 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged( |
997 range, character_bounds); | 1000 range, character_bounds); |
998 } | 1001 } |
999 #endif | 1002 #endif |
1000 | 1003 |
1001 } // namespace content | 1004 } // namespace content |
OLD | NEW |