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/renderer/browser_plugin/browser_plugin.h" | 5 #include "content/renderer/browser_plugin/browser_plugin.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #if defined (OS_WIN) | 9 #if defined (OS_WIN) |
10 #include "base/sys_info.h" | 10 #include "base/sys_info.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 const char kURL[] = "url"; | 59 const char kURL[] = "url"; |
60 | 60 |
61 static std::string TerminationStatusToString(base::TerminationStatus status) { | 61 static std::string TerminationStatusToString(base::TerminationStatus status) { |
62 switch (status) { | 62 switch (status) { |
63 case base::TERMINATION_STATUS_NORMAL_TERMINATION: | 63 case base::TERMINATION_STATUS_NORMAL_TERMINATION: |
64 return "normal"; | 64 return "normal"; |
65 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: | 65 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: |
66 return "abnormal"; | 66 return "abnormal"; |
67 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: | 67 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: |
68 return "killed"; | 68 return "killed"; |
| 69 case base::TERMINATION_STATUS_PROCESS_CRASHED: |
| 70 return "crashed"; |
69 default: | 71 default: |
70 // This should never happen. | 72 // This should never happen. |
71 DCHECK(false); | 73 DCHECK(false); |
72 return "unknown"; | 74 return "unknown"; |
73 } | 75 } |
74 } | 76 } |
75 } | 77 } |
76 | 78 |
77 BrowserPlugin::BrowserPlugin( | 79 BrowserPlugin::BrowserPlugin( |
78 int instance_id, | 80 int instance_id, |
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 void* notify_data) { | 851 void* notify_data) { |
850 } | 852 } |
851 | 853 |
852 void BrowserPlugin::didFailLoadingFrameRequest( | 854 void BrowserPlugin::didFailLoadingFrameRequest( |
853 const WebKit::WebURL& url, | 855 const WebKit::WebURL& url, |
854 void* notify_data, | 856 void* notify_data, |
855 const WebKit::WebURLError& error) { | 857 const WebKit::WebURLError& error) { |
856 } | 858 } |
857 | 859 |
858 } // namespace content | 860 } // namespace content |
OLD | NEW |