OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/guest_view/web_view/web_view_guest.h" | 5 #include "extensions/browser/guest_view/web_view/web_view_guest.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "components/browsing_data/storage_partition_http_cache_data_remover.h" | 10 #include "components/browsing_data/storage_partition_http_cache_data_remover.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 return "normal"; | 122 return "normal"; |
123 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: | 123 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: |
124 case base::TERMINATION_STATUS_STILL_RUNNING: | 124 case base::TERMINATION_STATUS_STILL_RUNNING: |
125 return "abnormal"; | 125 return "abnormal"; |
126 #if defined(OS_CHROMEOS) | 126 #if defined(OS_CHROMEOS) |
127 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM: | 127 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM: |
128 return "oom killed"; | 128 return "oom killed"; |
129 #endif | 129 #endif |
130 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: | 130 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: |
131 return "killed"; | 131 return "killed"; |
| 132 #if defined(OS_ANDROID) |
| 133 case base::TERMINATION_STATUS_OOM_PROTECTED: |
| 134 #endif |
132 case base::TERMINATION_STATUS_PROCESS_CRASHED: | 135 case base::TERMINATION_STATUS_PROCESS_CRASHED: |
133 return "crashed"; | 136 return "crashed"; |
134 case base::TERMINATION_STATUS_LAUNCH_FAILED: | 137 case base::TERMINATION_STATUS_LAUNCH_FAILED: |
135 return "failed to launch"; | 138 return "failed to launch"; |
136 case base::TERMINATION_STATUS_MAX_ENUM: | 139 case base::TERMINATION_STATUS_MAX_ENUM: |
137 break; | 140 break; |
138 } | 141 } |
139 NOTREACHED() << "Unknown Termination Status."; | 142 NOTREACHED() << "Unknown Termination Status."; |
140 return "unknown"; | 143 return "unknown"; |
141 } | 144 } |
(...skipping 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1493 scoped_ptr<base::DictionaryValue> args(new base::DictionaryValue()); | 1496 scoped_ptr<base::DictionaryValue> args(new base::DictionaryValue()); |
1494 DispatchEventToView( | 1497 DispatchEventToView( |
1495 new GuestViewEvent(webview::kEventExitFullscreen, args.Pass())); | 1498 new GuestViewEvent(webview::kEventExitFullscreen, args.Pass())); |
1496 } | 1499 } |
1497 // Since we changed fullscreen state, sending a Resize message ensures that | 1500 // Since we changed fullscreen state, sending a Resize message ensures that |
1498 // renderer/ sees the change. | 1501 // renderer/ sees the change. |
1499 web_contents()->GetRenderViewHost()->GetWidget()->WasResized(); | 1502 web_contents()->GetRenderViewHost()->GetWidget()->WasResized(); |
1500 } | 1503 } |
1501 | 1504 |
1502 } // namespace extensions | 1505 } // namespace extensions |
OLD | NEW |