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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 case base::TERMINATION_STATUS_STILL_RUNNING: | 121 case base::TERMINATION_STATUS_STILL_RUNNING: |
122 return "abnormal"; | 122 return "abnormal"; |
123 #if defined(OS_CHROMEOS) | 123 #if defined(OS_CHROMEOS) |
124 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM: | 124 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM: |
125 return "oom killed"; | 125 return "oom killed"; |
126 #endif | 126 #endif |
127 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: | 127 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: |
128 return "killed"; | 128 return "killed"; |
129 case base::TERMINATION_STATUS_PROCESS_CRASHED: | 129 case base::TERMINATION_STATUS_PROCESS_CRASHED: |
130 return "crashed"; | 130 return "crashed"; |
| 131 case base::TERMINATION_STATUS_LAUNCH_FAILED: |
| 132 return "failed to launch"; |
131 case base::TERMINATION_STATUS_MAX_ENUM: | 133 case base::TERMINATION_STATUS_MAX_ENUM: |
132 break; | 134 break; |
133 } | 135 } |
134 NOTREACHED() << "Unknown Termination Status."; | 136 NOTREACHED() << "Unknown Termination Status."; |
135 return "unknown"; | 137 return "unknown"; |
136 } | 138 } |
137 | 139 |
138 std::string GetStoragePartitionIdFromSiteURL(const GURL& site_url) { | 140 std::string GetStoragePartitionIdFromSiteURL(const GURL& site_url) { |
139 const std::string& partition_id = site_url.query(); | 141 const std::string& partition_id = site_url.query(); |
140 bool persist_storage = site_url.path().find("persist") != std::string::npos; | 142 bool persist_storage = site_url.path().find("persist") != std::string::npos; |
(...skipping 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1461 scoped_ptr<base::DictionaryValue> args(new base::DictionaryValue()); | 1463 scoped_ptr<base::DictionaryValue> args(new base::DictionaryValue()); |
1462 DispatchEventToView( | 1464 DispatchEventToView( |
1463 new GuestViewEvent(webview::kEventExitFullscreen, args.Pass())); | 1465 new GuestViewEvent(webview::kEventExitFullscreen, args.Pass())); |
1464 } | 1466 } |
1465 // Since we changed fullscreen state, sending a Resize message ensures that | 1467 // Since we changed fullscreen state, sending a Resize message ensures that |
1466 // renderer/ sees the change. | 1468 // renderer/ sees the change. |
1467 web_contents()->GetRenderViewHost()->WasResized(); | 1469 web_contents()->GetRenderViewHost()->WasResized(); |
1468 } | 1470 } |
1469 | 1471 |
1470 } // namespace extensions | 1472 } // namespace extensions |
OLD | NEW |